Thapathali-Alumni / alumni-directory-api

API for alumni directory
MIT License
0 stars 0 forks source link

Alumni Directory API

This repository contains NodeJS API for alumni directory of Thapathali campus.

Usage

  1. Clone this repository
    git clone git@github.com:Thapathali-Alumni/alumni-directory-api.git
  2. Start express application using npm
    cd alumni-directory-api
    npm install
    npm start

    Load the api documentation from http://localhost:3000/docs

Generating database migration

After making changes to models inside ./src/models folder, run

npm run db:makemigrations

Running 'npm start' runs the sequelize migrate command so the new changes are applied to the database. If you need to manually run the migrations, run:

npm run db:migrate

Logging in Swagger