Skip to content

Latest commit

 

History

History
30 lines (26 loc) · 878 Bytes

readme.md

File metadata and controls

30 lines (26 loc) · 878 Bytes

myLibrary

Fastapi application with the ability to view books on different devices with saving reading progress

How to run it:

  1. create backend/.env file
  2. create alembic.ini file
  3. create frontend/.env file
  4. create postgres database:
    docker run --name postgres -e POSTGRES_PASSWORD=PASS -e POSTGRES_USER=USER -p 5432:5432 -d postgres
  5. create pgadmin:
    docker run --name pgadmin -p 80:80 -e PGADMIN_DEFAULT_EMAIL=MAIL -e PGADMIN_DEFAULT_PASSWORD=PASS_FOR_PGADMIN -d dpage/pgadmin4
  6. create table in pgadmin
  7. create redis: docker run --name redis -p 6379:6379 -d redis
  8. run migrations:
    alembic revision --autogenerate -m "Message"
    alembic upgrade head
  9. run backend:
    cd backend
    python3 main.py
  10. run frontend:
    cd frontend
    yarn start
  11. enjoy 👀

UPD:

1)add backend/.env & frontend/.env

2)docker-compose up