npm install
Copy .env.example to .env and set the environment variables.
docker-compose up -d
npx sequelize-cli db:migrate
npx sequelize-cli db:seed:all
npm run dev
docker-compose down
http://localhost:8080
- Get all Locations:
GET /locations/
- Get Location:
GET /location/2
- Add Location:
POST /location/
{
name: "I am a Location!",
...
}
- Update Location:
PUT /location/1
{
name: "Change my name!",
...
}
- Update Location:
DELETE /location/1