Internal API to give insight into Mondo's beer consumption, tap status, and other fun metrics!
Some architecture based off of the nodejs-api-starter project by kriasoft. Some code was copied blatantly ¯\_(ツ)_/¯
Make sure the following are installed and up to date:
- Node ~8.1
- Yarn
- Postgresql - easiest way to get up and going with PG. You can also install via homebrew.
- A
.env-example
file is included in the repo. Create a.env
file locally and change the values as necessary. - Run
yarn install
to install all necessary dependencies. - Run the
./config/pg-initdb.sh
command to initialize a new DB - Note: you might need to set permissions first (chmod 755 ./config/pg-initdb.sh
) - Run DB migrations (
yarn db-migrate
)
- Creates a new migration with the provided name prepended with a timestamp
- Runs database migrations
- Rollback the last migration
- Seeds the DB (TBI)
TBI