uhlryk / my-express-react-seed

Node.js, express, sequelize, react, hot-loader, redux, bootstrap3, sass, webpack, gulp boilerplate app
7 stars 3 forks source link

Express React seed

Installation:

How to use this code as new app:

1 Clone this repository to new empty dir:

git clone https://github.com/uhlryk/my-express-react-seed.git newDirectory

2 Create your app repository

3A Change remote git url to your repository url

git remote set-url origin https://github.com/yournick/your-app-url.git

3B If you don't want to have this boilerplate commit history you can remove it and create new own git init:

rm -rf .git
git init
git remote add origin https://github.com/yournick/your-app-url.git
git add .
git commit

4 change app info in package.json

5 update npm modules

npm install

Config files

All configs are in :

src/config

You can try to run npm init which create configs files. Or if this not working do it manually:

1 copy server.template.js config file and name it server.local.js

cp src/configs/server.template.js src/configs/server.local.js

2 copy server.template.js config file and name it server-test.local.js

cp src/configs/server.template.js src/configs/server-test.local.js

3 copy client.template.js config file and name it client.local.js

cp src/configs/client.template.js src/configs/client.local.js

In both cases edit this files with your local settings.

Commands:

For production:

Transform all server and client source files:

gulp compile

For development:

Transform all server source files and test them:

gulp test

Transform all server source files, test them and create coverage report:

gulp coverage

Run server and client with watch changes (default url http://localhost:3000):

gulp dev-normal

Run server and client with watch changes and hot reloading (default url http://localhost:3001):

gulp dev-hot

Structure:

Technology:

Licence

MIT