Skip to content

SportUp-Tech/sport-up-service

Repository files navigation

sport-up-service

Backend for the SportUp mobile app, offering REST and WebSocket APIs for profiles, activities, and real-time chat.

Services overview

  • Firebase: Authentication and messaging.
  • Supabase: Storage for user photos.

Manual migration database schema

For development, you can use the alembic tool to manage database migrations.

alembic revision --autogenerate -m "your message"

To apply the changes to the database, run:

alembic upgrade head

For production, you can use doppler to manage environment variables and database migrations.

To set up the production environment, you need to set up Droppler.

This file should contain all the necessary environment variables required for the application to run in production.

doppler login
doppler setup

Then you can run the following command to set up the environment variables:

doppler run -- alembic revision --autogenerate -m "your message"

To apply the changes to the database, run:

doppler run -- alembic upgrade head

Check current division in the database:

doppler run -- alembic current

Manual building service images

For development, you can use Docker Compose to build the service images.

To build the images, run:

docker compose -f .devops/docker-compose.dev.yml up --build -d

About

Backend for the SportUp mobile app, offering REST and WebSocket APIs for profiles, activities, and real-time chat.

Resources

Stars

Watchers

Forks

Contributors

Languages