Sample Express API Application
- Node.js: Download and Install Node.js
- Git: Download and Install Git
Clone the repository to your local machine:
git clone https://github.com/achchuthany/express-api.git
cd express-api
npm install --save-dev sequelize-cli
Reference : https://sequelize.org/docs/v6/other-topics/migrations/
Navigate to config/config.json and update the development section:
"development": {
"username": "root",
"password": "",
"database": "express_api",
"host": "127.0.0.1",
"dialect": "mariadb"
}
you have to update the username,password based on your configuration
You have to create a database express_api
npx sequelize-cli db:migrate
Reference: https://sequelize.org/docs/v6/other-topics/migrations/#running-migrations
npm install
npm start