- NodeJS
- Express
- MongoDB
- ReactJS (current version)
- ReactHooks
- Redux
- Let you register an account in an encrypted safest way.
- Let you login with a registered account and only access private routes only if successfully login
- With basic validation both in frontend and backend
- Bcryptjs for encryption
- Generates
Bearer
token - Token expiration > 30 mins.
- May enter invalid or valid information.
- Clone this repository
- Run
npm install
and cd to /client and runnpm install
also - I've made a script to run both client and server at the same time. Just run in root directory cmd
npm run dev
- To run only the server run `npm run server'
- Front-end served at localhost:3000
- Back-end served at localhost:1000
- I used proxy server for API Communication. May check on /client package.json file bottom part.
- Server would require you to have a mongodb installed locally or in cloud.
- .env.example contains all sample keys and connection string to mongodb that are properly deployed in my host (which is heroku). You may use it as a reference. For more info about mongodb installation please refer mongodb docs
(C) 2020 Author: Alejandro H. Cartojano Jr.