MongoDB, Express, React/Redux, Node
$ git clone https://github.com/amazingandyyy/mern-stack.git
- You need make the both the following two run
$ 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 |
User visit public and Home page
After signing in user can go to account route and make request to token-protected API endpoint
- Feel free to find me on GitHub and LiveCoding
- or visit my page