This is a MERN biolerplate with login, account, permissions, and hot-reload features. The design of the codes follows the modern Javascript and React writing style. With module-based design, the hierarchy of the code-base itself is also a template for writing MERN projects.
This is a boilerplate project using the following technologies:
- Mongoose for the database
- Express
- React 16, React Router for the frontend, and Redux for global store
- Node.js for hosting server
- Webpack4 for compilation
- JWT for user session managemet
- Install required packages with
yarn install
. - Copy the example config file
server/config.example.js
toserver/config.js
and modify the content. - Create a folder for database
mkdir ./db
.
- Database daemon:
mongod -dbpath ./db
. - Node server:
Production mode:
npm run start
Development mode:
npm run start:dev
MIT License Copyright (C) 2018 Medicine Yeh
This work is originated from arkon/MERN-boilerplate and Eugene Cheung's work.