Skip to content

an application that uses express JS to create a rest API server requirements with mysql database (sequelize, nodemon, migration etc)

Notifications You must be signed in to change notification settings

hoyirul/express-starter-api

Repository files navigation

Installation

  • ~$ npm install -g express-generator
  • ~$ express --no-view your-project
  • ~$ npm install -g nodemon
  • After install nodemon you should run project with your-project$ nodemon bin/www
  • ~$ cd your-project
  • your-project$ npm install mysql2 --save
  • your-project$ npm i dotenv --save
  • your-project$ npm install --save sequelize sequelize-cli
  • your-project$ npx sequelize
  • your-project$ npx sequelize init
  • After that go to config/config.json you should change the file to config/config.js
  • After that go to models/index.js you should change the code with const config = require(__dirname + '/../config/config')[env];
  • Documentation : https://sequelize.org/docs/v6
  • your-project$ npm i fastest-validator --save

About

an application that uses express JS to create a rest API server requirements with mysql database (sequelize, nodemon, migration etc)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages