Skip to content

Latest commit

 

History

History
38 lines (17 loc) · 576 Bytes

readme.md

File metadata and controls

38 lines (17 loc) · 576 Bytes

How to Use

Once the data is ready in database and you start the server using one of the methods below

npm run dev

now here is a list of apis

  • localhost:8000//api/v1/record

here are some optional query params

limit: limits the number of records, default limit is 10

state: Retrieve data from a specific state

  • localhost:8000//api/v1/record?limit=15&state=AL

Options to setup

1. Setup-docker

docker-compose up

2. Setup-local

Run these commands in sequence

npm install

npx sequelize-cli db:migrate

npx sequelize-cli db:seed:all