{"id":21846262,"url":"https://github.com/mpc-lab-x/mpc-lab-x-server","last_synced_at":"2025-12-30T21:20:07.911Z","repository":{"id":257132612,"uuid":"857125671","full_name":"MPC-Lab-X/MPC-Lab-X-server","owner":"MPC-Lab-X","description":"MPC-Lab-X-server is the backend component of the MPC-Lab-X project. It handles question generation, problem solving, and data management for mathematics, physics, and chemistry.","archived":false,"fork":false,"pushed_at":"2025-01-07T14:50:56.000Z","size":354,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-01-26T12:11:29.316Z","etag":null,"topics":["chemistry","generator","math","mathematics","nodejs","physics","server","teaching-tool"],"latest_commit_sha":null,"homepage":"https://mpclabx.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MPC-Lab-X.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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-09-13T21:20:09.000Z","updated_at":"2025-01-07T14:51:29.000Z","dependencies_parsed_at":"2024-12-27T06:19:42.187Z","dependency_job_id":"6f01cef7-e6ec-4ba6-90fa-008ec75a12eb","html_url":"https://github.com/MPC-Lab-X/MPC-Lab-X-server","commit_stats":null,"previous_names":["mpc-lab-x/mpc-lab-x-server"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MPC-Lab-X%2FMPC-Lab-X-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MPC-Lab-X%2FMPC-Lab-X-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MPC-Lab-X%2FMPC-Lab-X-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MPC-Lab-X%2FMPC-Lab-X-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MPC-Lab-X","download_url":"https://codeload.github.com/MPC-Lab-X/MPC-Lab-X-server/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244830974,"owners_count":20517597,"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":["chemistry","generator","math","mathematics","nodejs","physics","server","teaching-tool"],"created_at":"2024-11-27T23:13:29.013Z","updated_at":"2025-12-30T21:20:07.893Z","avatar_url":"https://github.com/MPC-Lab-X.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MPC-Lab-X-server\n\nMPC-Lab-X-server is the backend component of the MPC-Lab-X project. It handles question generation, problem solving, and data management for mathematics, physics, and chemistry.\n\n## Features\n\n- Randomized question generation in various subjects (mathematics, physics, chemistry).\n- Provides solutions and detailed steps for each generated question.\n- Supports multiple categories and detailed sub-types of questions.\n- Uses Express.js for API handling and MongoDB for data storage.\n- Supports user authentication and session management.\n- Classroom creation, student management, TA/admin management, task creation/management (using mpclab library for problem generation), and task grading.\n\n## Prerequisites\n\n- Node.js\n- MongoDB\n- SMTP server for sending emails\n\n## Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/MPC-Lab-X/MPC-Lab-X-server.git\n   ```\n\n2. Install the dependencies:\n\n   ```bash\n   npm install\n   ```\n\n3. Create a `.env` file in the root directory and add the following environment variables:\n\n   ```env\n   PORT=5000 # Port number for the server (default: 5000)\n   HOST=localhost # Host address for the server (default: localhost)\n   MONGODB_URI=mongodb://localhost/mpc-lab-x # MongoDB connection URI\n   JWT_SECRET=secret # Secret key for JWT token generation\n   EMAIL_HOST=smtp-relay.brevo.com # SMTP host for sending emails\n   EMAIL_PORT=587 # SMTP port for sending emails\n   EMAIL_SECURE=false # SMTP secure connection (default: false)\n   EMAIL_USERNAME=user # SMTP username\n   EMAIL_PASSWORD=pass # SMTP password\n   EMAIL_SENDER=no-reply@example.com # Email sender address\n   ```\n\n   \u003e Note: The SMTP host, port, username, password, and sender address should be replaced with your own SMTP server details.\n\n4. Start the server:\n\n   ```bash\n   npm start\n   ```\n\n## Usage\n\nThe server provides a RESTful API for question generation, problem solving, and data management. The API endpoints are documented in the [docs/API.md](docs/API.md) file.\n\n## Testing\n\nThe server uses Jest for testing. To run the tests, use the following command.\n\n```bash\nnpm test\n```\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpc-lab-x%2Fmpc-lab-x-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmpc-lab-x%2Fmpc-lab-x-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmpc-lab-x%2Fmpc-lab-x-server/lists"}