This project uses node 16, typescript & koa for setting up an API for adding and reading random puns made by Philipp Zirpins.
First copy the file .env-sample to .env and change the values if you want.
Then start the docker containers:
- docker-compose up
- Run
npm i
- Run
./node_modules/.bin/prisma generate
- Run
npm run watch
to watch files in src and transpile them live.
Docker starts postgres SQL server and an adminer instance. The adminer instance runs on port 4242. When postgressql starts for the first time it will create the database, and create a table with a row of test data. The script for this can be seen in init.sql.