A Music Streaming Service!
- Docker 4.30 or above
-
Git clone the repository
git clone https://github.com/AkshuAgrwl/Zade cd Zade
-
Rename
.env.example
to.env
. -
Fill the credentials/parameters in the
.env
file accordingly. (Check Environment Variables section) -
Generate the image and run the docker container
-
In development environment:
docker compose -f docker-compose.yaml -f docker-compose.dev.yaml up --watch
-
Note: To enable type-checking and other features in your IDE, you need to install the packages locally.
-
Before running the docker compose, install the packages locally by following the below steps.
-
Install Backend packages:
cd backend poetry install
-
Install Frontend fackages:
cd frontend npm install
Note: Some general variables may be pre-defined in
.env.example
which can be left unchanged if you want to run the project in development. But they must be changed (or verified) in production.
Some parameters like passwords and secret keys must be set before running the project. For generating secret keys, follow the guide in Environment Variables section.
-
ENVIRONMENT
: The environment the project is running in. (development
/production
). -
APP_NAME
: Name of the Application. (Default:Zade
) -
SITE_URL
: The public URL of the site. (Default:http://localhost:3000
)
FRONTEND_NEXTJS_PORT
: Port to expose the frontend Next.js server on. (Default:3000
)
BACKEND_FASTAPI_PORT
: Port to expose the backend FastAPI server on. (Default:8000
)
-
POSTGRES_USER
: Postgres default user. -
POSTGRES_PASSWORD
: Password for thePOSTGRES_USER
. -
POSTGRES_DB
: Default postgres database.
-
SUPERTOKENS_POSTGRES_USER
: Postgres user for supertokens. This will be created during database initialization with ownership to theSUPABASE_POSTGRES_DB
database. -
SUPERTOKENS_POSTGRES_PASSWORD
: Password for theSUPERTOKENS_POSTGRES_USER
. -
SUPERTOKENS_POSTGRES_DB
: Database for SuperTokens. This will be created during initialization and it's ownership will be given toSUPERTOKENS_POSTGRES_USER
.