Skip to content
This repository has been archived by the owner on Oct 18, 2022. It is now read-only.

hashworks/relaxdays-hackathon-cc-vol1-7-backend-purchase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

relaxdays-hackathon-cc-vol1-7-backend-purchase

This project was created in the Relaxdays Code Challenge Vol. 1. See https://sites.google.com/relaxdays.de/hackathon-relaxdays/startseite for more information. My participant ID in the challenge was: CC-VOL1-7

How to run this project

You can get a running version of this code by using:

git clone https://github.com/hashworks/relaxdays-hackathon-cc-vol1-7-backend-purchase.git
cd relaxdays-hackathon-cc-vol1-7-backend-purchase
docker build -t relaxdays-hackathon-cc-vol1-7-backend-purchase .
docker run -p 8080:8080 -it relaxdays-hackathon-cc-vol1-7-backend-purchase

Afterwards you can access http://127.0.0.1:8080/ which will redirect you to the swagger UI.

By default, data is stored in a SQLite database in memory. To persist data you can provide a DSN:

docker run -v "$(pwd)/output:/output" -p 8080:8080 -it relaxdays-hackathon-cc-vol1-7-backend-purchase -dsn "file:/output/output.sqlite?cache=shared"

OpenAPI definitions

OpenAPI definitions are available as YAML and JSON.