Skip to content

Repository files navigation

DEV ENV

Prerequisites

  • Python 3.10+
  • Node 18
  • Docker
~/lups/lups$ npm i
~/lups/fast$ pip install -r requirements.txt

Frontend (www.lyps.ee)

~/lups/lups$ npm i
~/lups/lups$ ng serve

if 'ng' command didnt work you can try

~/lups/lups$ npm run ng serve

or install it globally

~/lups/lups$ npm install -g @angular/cli
~/lups/lups$ ng serve

Frontend (music.lyps.ee)

Only one frontend can run at the same time

~/lups/music$ npm i
~/lups/music$ ng serve

Backend (dev)

Start database and workers

~/lups$ docker compose -f docker-compose.dev.yaml up -d --build

Create / Reset database

~/lups/fast$ python create_db.py

Run app

~/lups/fast$ uvicorn main:app --reload

Backend (docker)

~/lups$ docker compose -f docker-compose.backend.yaml up -d --build

to create tables

~/lups$ docker exec -ti fastapi /bin/bash
/app# python create_db.py

ADVANCED

Run tests

~/lups/fast$ python -m unittest discover -s ./tests

Generate oauth for yt api (browser needed)

~/lups/music_worker$ pip install -r requirements.txt
~/lups/music_worker$ ytmusicapi oauth

About

No description, website, or topics provided.

Resources

Stars

6 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages