Skip to content

GDGVIT/lc-leaderboard-backend

GDSC VIT

LC Leaderboard Backend

A backend service for managing LeetCode leaderboard with user authentication and streak tracking


Join Us Discord Chat

DOCS UI

Features

  • User registration and authentication with JWT
  • LeetCode handle management
  • Streak tracking system
  • Leaderboard functionality
  • MongoDB integration with Prisma ORM
  • Input validation and error handling
  • Protected API routes

Dependencies

  • Express.js - Web framework
  • Prisma - Database ORM
  • MongoDB - Database
  • JWT - Authentication tokens
  • bcryptjs - Password hashing
  • TypeScript - Type safety
  • CORS - Cross-origin requests

Running

Clone the repository and install dependencies:

npm install

Set up environment variables in .env file:

DATABASE_URL=your_mongodb_connection_string
JWT_SECRET=your_jwt_secret
PORT=3000

Generate Prisma client and start development server:

npx prisma generate
npm run dev

Contributors

Aman Singh

Aman Singh

GitHub LinkedIn

Made with ❤ by GDSC-VIT

About

No description, website, or topics provided.

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages