trondeh80 / zirpuns-backend

A backend for a yodeck widget

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Backend for "Zirpuns" yodeck widget

This project uses node 16, typescript & koa for setting up an API for adding and reading random puns made by Philipp Zirpins.

Set up

First copy the file .env-sample to .env and change the values if you want.

Then start the docker containers:

  • docker-compose up

start development:

  • Run npm i
  • Run ./node_modules/.bin/prisma generate
  • Run npm run watch to watch files in src and transpile them live.

Docker setup

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.

About

A backend for a yodeck widget


Languages

Language:TypeScript 94.5%Language:Dockerfile 5.5%