{"id":24005188,"url":"https://github.com/klearliu/course-registration-system","last_synced_at":"2025-06-24T13:31:48.422Z","repository":{"id":229274841,"uuid":"775805056","full_name":"klearliu/course-registration-system","owner":"klearliu","description":"CMPT 315 Midterm","archived":false,"fork":false,"pushed_at":"2024-03-25T05:58:25.000Z","size":270,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T12:27:38.327Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/klearliu.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-03-22T04:28:32.000Z","updated_at":"2024-03-23T06:06:49.000Z","dependencies_parsed_at":null,"dependency_job_id":"e86f0f26-3252-4bf7-b51d-51cbbdbb4e5d","html_url":"https://github.com/klearliu/course-registration-system","commit_stats":null,"previous_names":["klearliu/course-registration-system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/klearliu/course-registration-system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klearliu%2Fcourse-registration-system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klearliu%2Fcourse-registration-system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klearliu%2Fcourse-registration-system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klearliu%2Fcourse-registration-system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/klearliu","download_url":"https://codeload.github.com/klearliu/course-registration-system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/klearliu%2Fcourse-registration-system/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261685509,"owners_count":23194119,"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":[],"created_at":"2025-01-08T02:34:59.026Z","updated_at":"2025-06-24T13:31:48.388Z","avatar_url":"https://github.com/klearliu.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Midterm\n\n## Completion status\n\nRealistically. Everything works except for the add and remove course for the UI. They do work using postman.\n\nI have made it so that:\n\n- enrolled classes won't be visible on selection\n- time conflicts with enrolled courses will be highlighted yellow on selection\n- when a student is selected from the current dropdown it shows its current enrolled courses\n\n## Dependencies\n\nThe project utilizes the following dependencies:\n\n(backend)\n\n- `\"dependencies\": {\n  \"cors\": \"^2.8.5\",\n  \"express\": \"^4.19.1\",\n  \"mongoose\": \"^8.2.3\",\n  \"nodemon\": \"^3.1.0\"\n  }`\n\n(frontend)\n\n- `\"dependencies\": {\n  \"axios\": \"^1.6.8\",\n  \"react\": \"^18.2.0\",\n  \"react-dom\": \"^18.2.0\",\n  \"react-icons\": \"^5.0.1\",\n  \"react-router-dom\": \"^6.22.3\"\n  },`\n- `\"devDependencies\": {\n  \"@types/react\": \"^18.2.66\",\n  \"@types/react-dom\": \"^18.2.22\",\n  \"@vitejs/plugin-react\": \"^4.2.1\",\n  \"autoprefixer\": \"^10.4.19\",\n  \"eslint\": \"^8.57.0\",\n  \"eslint-plugin-react\": \"^7.34.1\",\n  \"eslint-plugin-react-hooks\": \"^4.6.0\",\n  \"eslint-plugin-react-refresh\": \"^0.4.6\",\n  \"postcss\": \"^8.4.38\",\n  \"tailwindcss\": \"^3.4.1\",\n  \"vite\": \"^5.2.0\"\n  }`\n\n## .gitignore\n\nThe `.gitignore` file contains the following contents:\nbackend/node_modules\n.DS_Store\n\nfronend/node_modules\n\n## Running Instructions\n\nTo run the project locally, follow these steps or download the shared google drive I sent through email MacEwan Email:\n\n1. Navigate to `backend/` directory.\n2. Install dependencies by running `npm i cors express mongoose`.\n3. Navigate to `frontend/` directory\n4. Install dependencies by running `npm i react-router-dom`\n5. Test the endpoints using Postman locally and via the deployed render.\n\n**Disclaimer:** I have included two json files of what the DB should look like by default if curious\n\n\u003cdetails open\u003e\n\u003csummary\u003e### Testing Locally with Postman\u003c/summary\u003e\n\n- **GET** - Get All Courses:\n  - [http://localhost:8000/courses](http://localhost:8000/courses)\n- **GET** - Get All Students:\n  - [http://localhost:8000/students](http://localhost:8000/students)\n- **GET** - Get Course by ID:\n  - [http://localhost:8000/courses/:id](http://localhost:8000/courses/:id)\n  - ex: `http://localhost:8000/courses/0`\n- **GET** - Get Student by ID:\n  - [http://localhost:8000/students/:id](http://localhost:8000/students/:id)\n  - ex: `http://localhost:8000/students/0`\n- **PUT** - Add Course ID to Student:\n  - [http://localhost:8000/students/add_course/:\\_sid/:id](http://localhost:8000/students/add_course/:_sid/:id)\n  - ex: `http://localhost:8000/students/add_course/65fe81d17e58a61ffb2f0d42/0`\n- **DELETE** - Remove CourseID from Student: - [http://localhost:8000/students/remove_course/:\\_sid/:id](http://localhost:8000/students/remove_course/:_sid/:id)\n  - ex: `http://localhost:8000/students/remove_course/65fe81d17e58a61ffb2f0d42/0`\n  \u003c/details\u003e\n\n**Will have to refresh browser after doing these postman tests to see it work on the frontend**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklearliu%2Fcourse-registration-system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fklearliu%2Fcourse-registration-system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fklearliu%2Fcourse-registration-system/lists"}