Pre requisites:
- docker
- yarn
- node
Setup:
- Run yarn install
How to run:
docker run --rm -e POSTGRES_HOST_AUTH_METHOD=trust -p 5432:5432 postgres:11
psql -U postgres -h localhost -c "create database \"auto-mapper-mikro-orm-sample\";"
yarn run mikro-orm migration:up
yarn run ts-node src/index.ts
Step 1 needs to be done in a separate terminal.