Skip to main content

Prerequisites

  • Ensure you are using Node v22.12.0
  • Install pnpm
Use nvm (Node Version Manager) to easily install and manage the required Node.js version as defined in the .nvmrc file.

Setting Up JioSaavn

Prerequisites

  • Ensure you are using Bun.

Step 1: Clone the Project

Run the following command to clone the repository and navigate into the project directory:

Step 2: Install Dependencies

Install the necessary dependencies using:

Step 3: Run the server

Once the server starts, you should see output similar to this:

Setup Turborepo (NextJS + Reddit)

Step 1: Clone the Project

Step 2: Install Dependencies

Run the following commands:

Step 3 [Optional]: Install Turbo CLI Globally

Step 4: Run Development Servers

Start the development servers using:
OR

Step 5: Set Up Environment Secrets

Generate a secure authentication secret: Then, configure the .env file in apps/www:
Confused about this AUTH_REDDIT_ID and AUTH_REDDIT_SECRET, wait see this while creating your own oauth application on Reddit

Step 6: Set the Gemini API Key or you can use Ollama locally

In the .dev.vars file under the AI worker apps/fns/ai directory, add:
OR
src/routes/query.ts
Cloudflare loads environment variables from the .dev.vars file.

Step 7: Set the YouTube API Key

In the .dev.vars file under the YouTube worker apps/fns/yt directory, add:

Step 8: Start the Development Server

Run the dev server using:
OR

Additional Turbo CLI Features

Instead of running all development servers at once, you can selectively start specific services:
For more details, check out the Turbo CLI documentation.