{"id":23639901,"url":"https://github.com/vishalvivekm/pyqqserver","last_synced_at":"2026-05-06T03:31:26.189Z","repository":{"id":269379421,"uuid":"900098963","full_name":"vishalvivekm/pyqqserver","owner":"vishalvivekm","description":"Go server offering APIs to manage and retrieve educational resources.","archived":false,"fork":false,"pushed_at":"2025-01-22T12:26:17.000Z","size":12,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-19T09:49:18.850Z","etag":null,"topics":["api","mongodb","server"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vishalvivekm.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,"zenodo":null}},"created_at":"2024-12-07T21:23:41.000Z","updated_at":"2025-04-28T04:48:23.000Z","dependencies_parsed_at":"2025-05-20T00:01:37.322Z","dependency_job_id":null,"html_url":"https://github.com/vishalvivekm/pyqqserver","commit_stats":null,"previous_names":["vishalvivekm/pyqqserver"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vishalvivekm/pyqqserver","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishalvivekm%2Fpyqqserver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishalvivekm%2Fpyqqserver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishalvivekm%2Fpyqqserver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishalvivekm%2Fpyqqserver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vishalvivekm","download_url":"https://codeload.github.com/vishalvivekm/pyqqserver/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vishalvivekm%2Fpyqqserver/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32677870,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-06T02:33:58.958Z","status":"ssl_error","status_checked_at":"2026-05-06T02:33:39.611Z","response_time":117,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["api","mongodb","server"],"created_at":"2024-12-28T08:20:17.166Z","updated_at":"2026-05-06T03:31:26.165Z","avatar_url":"https://github.com/vishalvivekm.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# pyqqserver\n\nA Go-based server that provides an API for managing and retrieving educational resources. It uses MongoDB as the database and Gorilla Mux for routing.\n\n## Getting Started\n\n### Prerequisites\n\n- Go 1.23.1 or later\n- MongoDB\n- A `.env` file with the following environment variables:\n  - `MONGO_URI`: The connection string for your MongoDB instance.\n\n### Installation\n\n1. Clone the repository:\n\n   ```sh\n   git clone https://github.com/vishalvivekm/pyqqserver.git\n   cd pyqqserver\n   ```\n\n2. Install the dependencies:\n\n   ```sh\n   go mod download\n   ```\n\n3. Create a `.env` file in the root directory of the project and add your MongoDB URI:\n\n   ```sh\n   MONGO_URI=your_mongo_db_uri\n   ```\n\n### Running the Application\n\nTo run the application, from the root of the project, use the following command:\n\n```sh\ngo run main.go\n```\n\nThe server will start and listen on the `Port` specified in the `.env` file or default to port 8080.\n\n## API Endpoints\n\nThe application provides the following API endpoints:\n\n### Get Resources\n\n- **URL:** `/drive/{type}/{subject}`\n- **Method:** `GET`\n- **Description:** Retrieves resources based on type and subject.\n- **Example:** `/drive/notes/math`\n\n### Get Subjects\n\n- **URL:** `/{course}/{semester}/{branch}`\n- **Method:** `GET`\n- **Description:** Retrieves subjects for a specific course, semester, and branch.\n- **Example:** `/btech/secondsemesters/GEC`\n\n### Get Subject Details\n\n- **URL:** `/{course}/{semester}/{branch}/{subject}`\n- **Method:** `GET`\n- **Description:** Retrieves details for a specific subject.\n- **Example:** `/btech/firstsemesters/GCS/math`\n\n## Project Structure\n\n- `app/`: Contains the main application code.\n- `handler/`: Contains the HTTP handler functions.\n- `db/`: Contains the database initialization code.\n- `main.go`: The entry point for the application.\n\n## License\n\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\n## Acknowledgements\n\n- [Gorilla Mux](https://github.com/gorilla/mux)\n- [godotenv](https://github.com/joho/godotenv)\n- [MongoDB Go Driver](https://github.com/mongodb/mongo-go-driver)\n- [rs/cors](https://github.com/rs/cors)\n\nFeel free to contribute to this project by submitting issues or pull requests.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishalvivekm%2Fpyqqserver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvishalvivekm%2Fpyqqserver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvishalvivekm%2Fpyqqserver/lists"}