Skip to content

Latest commit

 

History

History
76 lines (62 loc) · 2.12 KB

README.md

File metadata and controls

76 lines (62 loc) · 2.12 KB

mern-stack

MongoDB, Express, React/Redux, Node

clone or download and send me PR(please)

$ git clone https://github.com/amazingandyyy/mern-stack.git

Usage(make it run on your machine)

  • You need make the both the following two run

prerequirement

Client-side usage(PORT: 3000)

$ cd client
$ npm i
$ npm run dev

Server-side usage(PORT: 8000)

(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

Dependencies(tech-stack)

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

Screenshots of this project

User visit public and Home page User visit public and Home page

User can sign in or sign up User can sign in or sign up

After signing in user can go to account route and make request to token-protected API endpoint After signing in user can go to account route

BUGs or comments

Create new Issues

Author

Amazingandyyy

License

MIT