All Projects → snphq → react-starter-boilerplate

snphq / react-starter-boilerplate

Licence: other
Starter boilerplate for both isomorphic and spa react applications

Programming Languages

javascript
184084 projects - #8 most used programming language
applescript
352 projects
SCSS
7915 projects
HTML
75241 projects

Getting Started

1. You can start by cloning the repository on your local machine by running:

git clone https://github.com/snphq/react-starter-boilerplate
cd react-starter-boilerplate

2. Install all of the dependencies:

yarn

3. Start to run it:

yarn dev

or

yarn dev:spa

Now the app should be running at http://localhost:5000/

NPM Main Script Commands

yarn <script> Description
dev Run your app on the development server at localhost:5000. HMR will be enabled.
dev:spa Run your app on the development server at localhost:5000. HMR will be enabled. SSR will be disabled.
start:staging Bundle files to ./public and run it on the staging server with staging environment at localhost:8080.
start:production Bundle files to ./public and run it on the production server with production environment at localhost:8080.
start:spa:staging Bundle files to ./public and run it on the production server with production environment at localhost:8080. SSR will be disabled.
start:spa:production Bundle files to ./public and run it on the production server with production environment at localhost:8080. SSR will be disabled.
build:assets:staging Remove the previous bundled staging files and bundle it to ./public.
build:assets:production Remove the previous bundled production files and bundle it to ./public.
lint Lint all .js and .scss files.
lint:js Lint all .js files.
lint:style Lint all .scss files.
clean:build Remove the ./public/assets folder to clean the client bundled files.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].