Skip to content

sumana10/medium-cohort

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Setup Guide

Backend Setup

  1. Navigate to the Backend Directory:

    cd backend
  2. Install Dependencies:

    Install all the necessary Node.js packages by running:

    npm install
  3. Configure the Environment Variables:

    • Update the .env file: Add your database connection string to the .env file. It should look something like this:

      DATABASE_URL="your-database-connection-string"
    • Update the wrangler.toml file: Configure the wrangler.toml file with your compatibility date and environment variables. Here’s an example of how it should look:

      compatibility_date = "2024-08-21"
      
      [vars]
      DATABASE_URL = "your-connection-pool-string"
      JWT_SECRET = "your-jwt-secret"
  4. Set Up Prisma:

    Initialize and apply your Prisma schema migrations:

    npx prisma migrate dev --name init_schema

    Generate the Prisma client:

    npx prisma generate --no-engine
  5. Start the Backend Server:

    Run the development server:

    npm run dev
  6. Test Your Backend:

    Import the medium.postman_collection file into Postman to test your backend endpoints.

Frontend Setup

  1. Navigate to the Frontend Directory:

    cd frontend
  2. Install Dependencies:

    Install all necessary Node.js packages for the frontend:

    npm install
  3. Start the Frontend Server:

    Run the frontend development server:

    npm run dev

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published