Prerequisites

Before starting, ensure you have the following:

Environment Variables

After creating your accounts, update your .env.example to be .env.local for running the application locally. Then update the keys for each value.

Step-by-Step Instructions

  1. Clone the Repository

    git clone https://github.com/9d8dev/router.git
    cd router/main
    
  2. Install Dependencies

    npm install
    
  3. Set Up Environment Variables

    Ensure your .env file is correctly configured as mentioned above.

  4. Generate the Database Migrations

    npm drizzle-kit generate
    
  5. Run the Databse Migrations

    npm tsx lib/db/migrate.ts
    
  6. Start the Development Server

    npm run dev
    

Deploying to Vercel

  • Push your code to a GitHub repository.
  • Connect your repository to Vercel.
  • Set the environment variables in Vercel’s dashboard under “Settings > Environment Variables”.

Additional Resources