Skip to content

Latest commit

 

History

History
237 lines (190 loc) · 9.34 KB

README.md

File metadata and controls

237 lines (190 loc) · 9.34 KB

Codechef-VIT

CookOff 9.0 Backend

Powered By



CookOff is CodeChef VIT’s flagship competitive coding event that tests the coding skills of developers. This is the backend that powers both the admin and participant portals for CookOff 9.0, serving as the backbone to manage users, questions, test cases, and submissions. Designed for efficiency and scalability, our robust backend simplifies the process of overseeing all competition-related tasks, ensuring smooth operations for both administrators and participants alike. With a focus on user-friendliness, it provides all the necessary tools to facilitate a seamless competitive experience.


DOCS UI

⚙️ Tech Stack:

🔧 Features

  • User Management:

    • Sign Up (/user/signup)
    • Login (/user/login)
  • Question Management:

    • Create Question (/question/create)
    • Get all Questions (/questions)
    • Get a Question (/question/{question_id})
    • Get Question by Round (/question/round)
    • Update Question (/question)
    • Delete Question (/question/{question_id})
  • Testcase Management:

    • Create Testcase (/testcase)
    • Get Testcases by Question (/questions/{question_id}/testcases)
    • Get a Testcase (/testcase/{testcase_id})
    • Update Testcase (/testcase/{testcase_id})
    • Delete Testcase (/testcase/{testcase_id})
  • Submission Management:

    • Submit Testcase (/submit)
    • Run Testcase (/runcode)
  • Leaderboard:

    • Get Leaderboard (/leaderboard)

🏁 Get Started

Directions to Install

  1. Fork the repo
  2. Clone it locally
$ git clone https://github.com/<GITHUB_USERNAME>/cookoff-9.0-backend.git
$ cd cookoff-9.0-backend

Prerequisites

  1. Setup atlas
  2. Configure env (refer .env.example)
  3. Configure Makefile

Directions to Run

  1. Spin up containers
$ docker compose up --build -d
  1. Install sqlc
$ go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
  1. Generate sqlc schema and queries
$ make generate
  1. Apply migrations
$ make apply-schema

📝 Checkout:

🚀 Contributors

profilepic

Vedant Matanhelia

GitHub LinkedIn

profilepic

Vaibhav Sijaria

GitHub LinkedIn

profilepic

Aman L

GitHub LinkedIn

profilepic

Jothish Kamal

GitHub LinkedIn

profilepic

Soham Mahapatra

GitHub LinkedIn

profilepic

Abhinav Anand

GitHub LinkedIn

profilepic

Aman Singh

GitHub LinkedIn

License

License

Made with ❤️ by CodeChef-VIT