A new project based on fastapi_supabase_template.
[Add a brief description of your project here.]
-
Install Python dependencies:
cd backend uv sync --all-groups --dev -
Start Supabase services:
Make sure you have the Supabase CLI installed.
# From the project root supabase startAfter running
supabase start, your Supabase credentials will be displayed. You need to update the.envfile with these credentials. You can do this manually or by running the provided script:# This script will update your .env file with the credentials from Supabase. bash scripts/update-env.shNote: Always check your
.envfile to ensure it has the correct Supabase URL and keys.
You can run tests to ensure everything is set up correctly.
cd backend
# Test database connection and migrations
./scripts/pre-start.sh
# Run unit tests
./scripts/test.sh
# Run tests that require a database connection
./scripts/tests-start.shYou can build and run the application using Docker.
-
Build the Docker image:
Remember to replace
your-docker-hub-username/flow2knowwith your actual Docker image name.cd backend docker build -t your-docker-hub-username/flow2know .
-
Run tests using the Docker image:
This command runs the test suite within a Docker container.
# Make sure Supabase is running supabase start # Run the tests cd backend docker run --network host \ --env-file ../.env \ -it your-docker-hub-username/flow2know:latest \ bash -c "sh scripts/pre-start.sh && sh scripts/tests-start.sh"
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
This project is licensed under the MIT License - see the LICENSE file for details.