A boilerplate/starter project for quickly building RESTful APIs using Node.js, Express and MySQL.
- Express
- MySQL
- Sequelize
- Redis
- Helmet
- Bcrypt
- Joi
- Passport
- Dontenv / Lodash / Moment
- Babel 7 / Webpack
- Install all the node packages listed in the package.json
npm install
- Replace .env.example to .env and complete MySQL database and redis server connection details
- Prepare database (create tables and populate)
- Run node server
npm start
- Pack and minimize source codes
npm run build
- Run node server as daemon
pm2 start build/index.js