Skip to content

Repository files navigation

Code Snippets

Personal code snippets library. Manage and run your code snippets.

Backend - FastAPI, PostgreSQL, SQLAlchemy, Alembic, Poetry, Pytest, Docker (for running code)

Frontend - React, TS, Vite, Tailwind, Lucide, React i18next

Also uses RabbitMQ, Elasticsearch, Redis

Auth - JWT + Refresh tokens, also uses Google OAuth 2.0

Local Quick Start

At project root directory

  • Create your .env file
cp .example.env .env
  • Up containers
docker compose -f 'docker-compose.dev.yml' up -d --build
  • Apply migrations
docker compose exec app alembic upgrade head

Additionally

  • Make new migrations
docker compose exec app alembic revision --autogenerate -m "message"
  • Run tests
docker compose exec app pytest --cov=app tests/
  • Add GOOGLE_CLIENT_ID and GOOGLE_CLIENT_SECRET to .env file. App would be using only username and email from Google account. For your client in Google Auth Platform you should use this Redirect URI (local dev):
http://localhost:8000/auth/google/callback

By default at your localhost:

Frontend is up on 3000 port

Backend is up on 8000 port

Swagger - /docs

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages