Skip to content

haavardnk/olmonopolet-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

247 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ølmonopolet API

Build

Backend API for Ølmonopolet - enriching Vinmonopolet's beer catalog with ratings and information from Untappd.

Features

  • Sync products from Vinmonopolet
  • Match and enrich beers with Untappd data
  • Track new releases and availability
  • RESTful API with Django REST Framework

Setup

git clone https://github.com/haavardnk/olmonopolet-api.git
cd olmonopolet-api
uv sync

Environment Variables

DATABASE_HOST=localhost
DATABASE_PORT=5432
DATABASE_NAME=beerdb
DATABASE_USERNAME=beer
DATABASE_PASSWORD=your-password
DJANGO_SECRET_KEY=your-secret-key
DEBUG_VALUE=1

Run

cd api
uv run python manage.py migrate
uv run python manage.py runserver

Development

uv run pytest

License

LGPL-3.0 License - See LICENSE file for details.