diff --git a/README.md b/README.md index 5ad04b15..72abf6e6 100644 --- a/README.md +++ b/README.md @@ -21,11 +21,23 @@ A decentralized music tracking and discovery platform built on the AT Protocol npm install -g turbo bun install ``` -3. Run the database migrations: +3. Set up the environment variables: + ```` + cp apps/api/.env.example apps/api/.env + ``` +4. Start the Docker containers: + ```bash + docker compose up + ``` +5. Run the database migrations: ```bash turbo db:migrate --filter=@rocksky/api ``` -4. Start the development server: +6. Start Analytics API: + ```bash + cargo run -p analytics --release -- serve + ``` +7. Start the development server: ```bash turbo dev --filter=@rocksky/api --filter=@rocksky/web ``` diff --git a/apps/api/.env.example b/apps/api/.env.example index cf058404..33658365 100644 --- a/apps/api/.env.example +++ b/apps/api/.env.example @@ -21,7 +21,7 @@ SPOTIFY_ENCRYPTION_KEY="your spotify encryption secret" SPOTIFY_ENCRYPRION_IV="your spotify encryption iv" ROCKSKY_BETA_TOKEN="your rocksky beta token" -NATS_URL="nats://localhost:4222" +NATS_URL="nats://localhost:4223" ANALYTICS_URL="http://localhost:7879" DROPBOX_REDIRECT_URI="http://localhost:8000/dropbox/oauth/callback" @@ -29,5 +29,7 @@ DROPBOX_CLIENT_ID="" DROPBOX_CLIENT_SECRET="" GOOGLE_REDIRECT_URI="http://localhost:8000/googledrive/oauth/callback" -POSTGTRES_URL="postgresql://postgres@localhost:5432/rocksky" -MEILISEARCH_API_KEY="masterkey" \ No newline at end of file +# The following envs depends on your docker compose setup +POSTGTRES_URL="postgresql://postgres:mysecretpassword@localhost:5433/rocksky" +MEILISEARCH_API_KEY="masterkey" +REDIS_URL="redis://localhost:6380" \ No newline at end of file