Skip to content

Rishab87/Codeitup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Codeitup

It is a platofrm like leetcode.

  • The frontend folder is the client-side.
  • The primary-backend is the main API.
  • The worker is for processing submission code.

How to Setup Locally

1. Frontend (Client-side)

cd frontend

Create a .env file

NEXT_PUBLIC_BACKEND_URL= 
NEXT_PUBLIC_BACKEND_URL_WS = 

For Google Authentication (Optional), create a .env.local:

GOOGLE_CLIENT_ID =
GOOGLE_CLIENT_SECRET = 
NEXTAUTH_SECRET = 

Install dependencies

npm install

Run

npm run dev

Primary Backend (Main API)

cd backend/primary-backend

Create a .env file

PORT = 4000
DATABASE_URL = 

REDIS_HOST = 
REDIS_QUEUE = 

JWT_SECRET = 

OWNER_EMAIL = YOUR_EMAIL_ID

MAIL_HOST = 
MAIL_USER = 
MAIL_PASS = 

# cloudinary configs

FOLDER_NAME = 
CLOUD_NAME = 
API_KEY = 
API_SECRET = 

Install dependencies

npm install

Run

npm run dev

Worker

cd backend/worker

Create a .env file

REDIS_HOST = 
REDIS_QUEUE =

Install dependencies

npm install

Run

npm run dev

Requirements

  • Node.js
  • PostgreSQL
  • Cloudinary account (for file storage)
  • Gmail account (for sending mails)

Tech Stack

  • Frontend: Next.js, Tailwind CSS
  • Backend: Node.js, Express, PostgreSQL, Redis
  • Worker: Node.js + Redis queue
  • File Storage: Cloudinary

About

Codeitup is a platform for practicing DSA questions like leetcode

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published