Skip to content

alisajidcs/power-plant-consumption-report

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published