Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoyirul/express-starter-api
an application that uses express JS to create a rest API server requirements with mysql database (sequelize, nodemon, migration etc)
https://github.com/hoyirul/express-starter-api
expressjs javascript mysql2 nodejs restful-api sequelize
Last synced: 15 days ago
JSON representation
an application that uses express JS to create a rest API server requirements with mysql database (sequelize, nodemon, migration etc)
- Host: GitHub
- URL: https://github.com/hoyirul/express-starter-api
- Owner: hoyirul
- Created: 2023-01-22T05:41:16.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-01-24T03:51:22.000Z (about 1 year ago)
- Last Synced: 2024-01-24T11:07:17.652Z (about 1 year ago)
- Topics: expressjs, javascript, mysql2, nodejs, restful-api, sequelize
- Language: JavaScript
- Homepage:
- Size: 215 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## 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 toconfig/config.json
you should change the file toconfig/config.js
- After that go tomodels/index.js
you should change the code withconst config = require(__dirname + '/../config/config')[env];
-Documentation : https://sequelize.org/docs/v6
- your-project$ npm i fastest-validator --save