Giter Site home page Giter Site logo

himasnhu-at / codeinghive-server-main Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 476 KB

Main server of Codeing Hive in NestJS

Home Page: https://codeinghive.vercel.app

Shell 15.17% TypeScript 84.83%
coding-challenges codingcompetitions hacktoberfest learntrinity onlinecodeeditor codeinghive

codeinghive-server-main's Introduction

Codeing Hive Server

Welcome to the Codeing Hive Server repository! This server powers a dynamic platform for coding challenges, contests, and user submissions. Below, you'll find a comprehensive guide to set up the server, contribute to the project, and an overview of the current to-do list.

Feel free to explore, contribute, and make this platform even better! If you have any questions or suggestions, don't hesitate to reach out.

Table of Contents

Setup

  1. Clone the Repo:

    git clone https://github.com/CodeingHive/CodeingHive-Server-main.git
    cd CodeingHive-Server-main
  2. Setup Repository:

    • Using bash script:

      bash run.sh -i
    • Using terminal commands:

      npm i
      cp .env.example .env
      docker compose up dev-db -d
      npx prisma migrate dev --name init
      npx prisma migrate deploy
  3. Start the Server:

    • Using bash script:

      bash run.sh -d
      # To start db visual preview
      bash run.sh -db
    • Using terminal commands:

      # Visit http://localhost:3000 to visualize APIs and schema
      npm run start:dev
      # To start db visual preview
      npx prisma studio
  4. Restart Database:

    • Using bash script:

      bash run.sh -r
    • Using terminal commands:

      docker compose rm dev-db -s -f -v
      docker compose up dev-db -d
      npx prisma migrate dev --name init
      npx prisma migrate deploy

Contributing

All contributions are appreciated. Whether you're fixing a bug, adding a new feature, or improving documentation, your efforts make a difference. Please refer to the Contribution Guidelines for more details.

TODO List

MILESTONE-1:

  • Auth

    • POST /auth/signup - Signup
    • POST /auth/signin - Signin
  • User

    • GET /user/:id - Get user with ID: id
    • GET /user - Get all users
    • PUT /user/:id - Update user with ID: id
    • GET /user?q= - Sort query users
  • Problem

    • GET /problem/:id - Get problem with ID: id
    • GET /problem - Get all problems
    • GET /problem?q= - Sort query problems
  • Submission

    • GET /submission/:id - Get submission with ID: id
    • GET /submission - Get all submissions
    • POST /submission - Submit a solution
    • GET /submission?q= - Sort query submissions

MILESTONE-2:

  • Contest

    • GET /contest/:id - Get contest with ID: id
    • GET /contest - Get all contests
    • POST /contest - Create a contest
    • PUT /contest/:id - Update contest with ID: id
    • GET /contest?q= - Sort query contests
  • Contest Problem

    • GET /contest/:id/problem/:id - Get contest problem with ID: id
    • GET /contest/:id/problem - Get all contest problems
    • POST /contest/:id/problem - Create a contest problem
    • PUT /contest/:id/problem/:id - Update contest problem with ID: id
    • GET /contest/:id/problem?q= - Sort query contest problems
  • Update schema.prisma

Happy coding!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.