Skip to content

achchuthany/express-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Name

Sample Express API Application

Table of Contents

Getting Started

Prerequisites

Installation

Clone the repository to your local machine:

git clone https://github.com/achchuthany/express-api.git
cd express-api

Sequelize Setup

To install the Sequelize CLI

npm install --save-dev sequelize-cli

Reference : https://sequelize.org/docs/v6/other-topics/migrations/

Update Database Config

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

Create a Database

You have to create a database express_api

Running Migrations

npx sequelize-cli db:migrate

Reference: https://sequelize.org/docs/v6/other-topics/migrations/#running-migrations

Install the Dependencies

npm install

Run the Application

npm start

Download and Install Postman

https://www.postman.com/downloads/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published