$ npm run server
$ npm run client
$ cd client
$ npm i
$ npm run dev
(You need to add a JWT_SECRET in .env to connect to MongoDB -> make it run -> check your terminal for instructions )
$ cd server
$ npm i
$ npm run dev
Deploy Server to Heroku
$ npm i -g heroku
$ heroku login
$ heroku create
$ npm run heroku:add <your-heroku-app-name>
$ npm run deploy:heroku
Client-side | Server-side |
---|---|
axios: ^0.15.3 | bcrypt-nodejs: ^0.0.3 |
babel-preset-stage-1: ^6.1.18 | body-parser: ^1.15.2 |
lodash: ^3.10.1 | cors: ^2.8.1 |
react: ^16.2.0 | dotenv: ^2.0.0 |
react-dom: ^16.2.0 | express: ^4.14.0 |
react-redux: ^4.0.0 | jwt-simple: ^0.5.1 |
react-router-dom: ^4.2.2 | mongoose: ^4.7.4 |
redux: ^3.7.2 | morgan: ^1.7.0 |
redux-form: ^6.4.1 | |
redux-thunk: ^2.1.0 |