Skip to content
API for Are You In For Dinner 🍴
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.docker
assets
public
src
test
views
.env.dist
.gitignore
.prettierrc
README.md
areyouinfordinner.postman_collection.json
docker-compose.yml
nodemon.json
ormconfig.json.dist
package-lock.json
package.json
tsconfig.json
tslint.json
webpack.config.js
yarn.lock

README.md

burger

Are You In For Dinner API 🍴 🍕 🌮

An API for tracking if you're in for dinner or not. To stop the arguments about who did or didn't say they were or weren't in for dinner. Built to prove my mum wrong.

Setup

Copy the .env.dist and ormconfig.json.dist files renaming and removing the .dist part.

cp .env.dist .env && cp .ormconfig.json.dist ormconfig.json

Docker

Run docker via the compose setup

docker-compose up -d

Migrations

For development or pre-build applications (working in ts) use yarn schema:sync which will sync your database with the entities rather than migration files.

yarn schema:sync

For production env, use

yarn migrate

To run your migrations backwards use

yarn migrate:revert

More information about typeorm migrations here.

Logging queries

Add "logging": true to ormconfig.json to display typeorm logs.

Assets

Start building assets with

yarn assets:start
You can’t perform that action at this time.