This repository contains NodeJS API for Voice on the GO project.
- Clone this repository
git clone git@github.com:bijayraj/siu_vog_api_node.git
- Start express application using npm
cd siu_vog_api_node
npm install
npm start
Load the api documentation from http://localhost:3000/docs
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
- First execute the login route with username and password! Default username, password is admin, admin.
- From the response body of login, copy the token field.
- In documentation page, click on 'Authorize' and paste the copied token into Bearer 'field' and click login.
- All routes will be accessible now!