{"id":17359436,"url":"https://github.com/himasnhu-at/codeinghive-server-main","last_synced_at":"2025-02-26T11:31:40.735Z","repository":{"id":200311499,"uuid":"705236034","full_name":"Himasnhu-AT/CodeingHive-Server-main","owner":"Himasnhu-AT","description":"Main server of Codeing Hive in NestJS","archived":true,"fork":false,"pushed_at":"2024-01-01T16:07:40.000Z","size":476,"stargazers_count":0,"open_issues_count":12,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-12T18:59:46.744Z","etag":null,"topics":["codeinghive","coding-challenges","codingcompetitions","hacktoberfest","learntrinity","onlinecodeeditor"],"latest_commit_sha":null,"homepage":"https://codeinghive.vercel.app","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Himasnhu-AT.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-10-15T12:56:29.000Z","updated_at":"2024-01-01T16:59:35.000Z","dependencies_parsed_at":"2023-12-30T16:23:17.689Z","dependency_job_id":"6579650f-91e2-4e4e-99a8-dab9022268dc","html_url":"https://github.com/Himasnhu-AT/CodeingHive-Server-main","commit_stats":null,"previous_names":["codeinghive/codeinghive-server-main","himasnhu-at/codeinghive-server-main"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2FCodeingHive-Server-main","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2FCodeingHive-Server-main/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2FCodeingHive-Server-main/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Himasnhu-AT%2FCodeingHive-Server-main/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Himasnhu-AT","download_url":"https://codeload.github.com/Himasnhu-AT/CodeingHive-Server-main/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240843450,"owners_count":19866768,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["codeinghive","coding-challenges","codingcompetitions","hacktoberfest","learntrinity","onlinecodeeditor"],"created_at":"2024-10-15T19:09:38.721Z","updated_at":"2025-02-26T11:31:40.719Z","avatar_url":"https://github.com/Himasnhu-AT.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Codeing Hive Server\n\nWelcome 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.\n\nFeel free to explore, contribute, and make this platform even better! If you have any questions or suggestions, don't hesitate to reach out.\n\n## Table of Contents\n\n- [Setup](#)\n- [Start the Server](#)\n- [Restart Database](#)\n- [Contributing](#)\n- [TODO List](#)\n  - [Milestone 1](#)\n  - [Milestone 2](#)\n\n## Setup\n\n1. **Clone the Repo:**\n    ```bash\n    git clone https://github.com/CodeingHive/CodeingHive-Server-main.git\n    cd CodeingHive-Server-main\n    ```\n\n2. **Setup Repository:**\n    - Using bash script:\n        ```bash\n        bash run.sh -i\n        ```\n\n    - Using terminal commands:\n        ```bash\n        npm i\n        cp .env.example .env\n        docker compose up dev-db -d\n        npx prisma migrate dev --name init\n        npx prisma migrate deploy\n        ```\n\n3. **Start the Server:**\n    - Using bash script:\n        ```bash\n        bash run.sh -d\n        # To start db visual preview\n        bash run.sh -db\n        ```\n\n    - Using terminal commands:\n        ```bash\n        # Visit http://localhost:3000 to visualize APIs and schema\n        npm run start:dev\n        # To start db visual preview\n        npx prisma studio\n        ```\n\n4. **Restart Database:**\n    - Using bash script:\n        ```bash\n        bash run.sh -r\n        ```\n\n    - Using terminal commands:\n        ```bash\n        docker compose rm dev-db -s -f -v\n        docker compose up dev-db -d\n        npx prisma migrate dev --name init\n        npx prisma migrate deploy\n        ```\n\n## Contributing\n\nAll 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](CONTRIBUTING.md) for more details.\n\n## TODO List\n\n### MILESTONE-1:\n\n- [x] **Auth**\n    - [x] `POST /auth/signup` - Signup\n    - [x] `POST /auth/signin` - Signin\n\n- [ ] **User**\n    - [ ] `GET /user/:id` - Get user with ID: id\n    - [ ] `GET /user` - Get all users\n    - [ ] `PUT /user/:id` - Update user with ID: id\n    - [ ] `GET /user?q=` - Sort query users\n\n- [ ] **Problem**\n    - [ ] `GET /problem/:id` - Get problem with ID: id\n    - [ ] `GET /problem` - Get all problems\n    - [ ] `GET /problem?q=` - Sort query problems\n\n- [ ] **Submission**\n    - [ ] `GET /submission/:id` - Get submission with ID: id\n    - [ ] `GET /submission` - Get all submissions\n    - [ ] `POST /submission` - Submit a solution\n    - [ ] `GET /submission?q=` - Sort query submissions\n\n### MILESTONE-2:\n\n- [ ] **Contest**\n    - [ ] `GET /contest/:id` - Get contest with ID: id\n    - [ ] `GET /contest` - Get all contests\n    - [ ] `POST /contest` - Create a contest\n    - [ ] `PUT /contest/:id` - Update contest with ID: id\n    - [ ] `GET /contest?q=` - Sort query contests\n\n- [ ] **Contest Problem**\n    - [ ] `GET /contest/:id/problem/:id` - Get contest problem with ID: id\n    - [ ] `GET /contest/:id/problem` - Get all contest problems\n    - [ ] `POST /contest/:id/problem` - Create a contest problem\n    - [ ] `PUT /contest/:id/problem/:id` - Update contest problem with ID: id\n    - [ ] `GET /contest/:id/problem?q=` - Sort query contest problems\n\n- [ ] Update `schema.prisma`\n\nHappy coding!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimasnhu-at%2Fcodeinghive-server-main","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhimasnhu-at%2Fcodeinghive-server-main","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhimasnhu-at%2Fcodeinghive-server-main/lists"}