Skip to content

bunsamosa/bowled_server

Repository files navigation

Bowled Server

Backend server for Bowled.gg

Folder Structure

Local Development

  • Install Poetry
  • Install VSCode
  • Clone the repo git clone https://github.com/bunsamosa/bowled_server.git
  • Change directory cd bowled_server
  • Install project dependencies with poetry poetry install
  • Install pre-commit hooks pre-commit install
  • The project uses Doppler for secrets management. However, you can use the environment variables listed below.
  • Setup the following environment variables
    • REDIS_HOST: Redis connection URI
    • JWT_ALGORITHM: HS256
    • JWT_SECRET: Secret key for JWT
    • JWT_AUDIENCE: Depends on your JWT authentication provider
    • POSTGRES_URL: Postgres connection URI
    • POSTGRES_SCHEMA: Postgres schema name
  • Hit F5 to start the server (VS Code will automatically start the debugger)
  • Visit http://127.0.0.1:9009/docs to view the API docs
  • Setup tables and sample data using scripts in /db_scripts