{"id":50894283,"url":"https://github.com/the-bipu/college-api-nextjs","last_synced_at":"2026-06-15T23:02:45.991Z","repository":{"id":328046896,"uuid":"846208507","full_name":"the-bipu/college-api-nextjs","owner":"the-bipu","description":"This is an API created for getting the names on all Indian Colleges. Here i've used NextJs for frontend as well as Backend and for database i've used MongoDb.","archived":false,"fork":false,"pushed_at":"2025-12-11T00:17:57.000Z","size":116,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-11T08:50:10.723Z","etag":null,"topics":["mongodb","nextjs","rest-api","shadcn-ui"],"latest_commit_sha":null,"homepage":"https://college-api-nextjs.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/the-bipu.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-08-22T18:29:38.000Z","updated_at":"2025-12-11T00:18:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/the-bipu/college-api-nextjs","commit_stats":null,"previous_names":["the-bipu/college-api-nextjs"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/the-bipu/college-api-nextjs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-bipu%2Fcollege-api-nextjs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-bipu%2Fcollege-api-nextjs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-bipu%2Fcollege-api-nextjs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-bipu%2Fcollege-api-nextjs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/the-bipu","download_url":"https://codeload.github.com/the-bipu/college-api-nextjs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/the-bipu%2Fcollege-api-nextjs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34383468,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-15T02:00:07.085Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["mongodb","nextjs","rest-api","shadcn-ui"],"created_at":"2026-06-15T23:02:45.231Z","updated_at":"2026-06-15T23:02:45.986Z","avatar_url":"https://github.com/the-bipu.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# College API - Next.js\n\nA comprehensive REST API built with Next.js that provides information about colleges across India. This project uses Next.js API routes to deliver fast and reliable college data.\n\n## 🚀 Features\n\n- **Random College**: Get a random college from the database\n- **Filter by Letter**: Search colleges by their starting letter\n- **All Colleges**: Retrieve the complete list of colleges\n- **Fast \u0026 Reliable**: Built on Next.js with optimized API routes\n- **Simple Integration**: Easy-to-use REST endpoints\n\n## 📁 Project Structure\n\n```\ncollege-api-nextjs/\n├── app/\n│   └── api/\n│       ├── college/\n│       │   └── route.js\n│       ├── colleges/\n│       │   └── route.js\n│       └── random/\n│           └── route.js\n├── components/\n│   └── ui/\n│       ├── button.tsx\n│       ├── card.tsx\n│       └── input.tsx\n├── lib/\n│   ├── mongodb.js\n│   └── utils.ts\n├── models/\n│   └── College.js\n├── pages/\n│   ├── _app.tsx\n│   ├── college.tsx\n│   └── index.tsx\n├── public/\n│   ├── next.svg\n│   └── vercel.svg\n├── .gitattributes\n├── .gitignore\n├── components.json\n├── next.config.mjs\n├── package.json\n├── postcss.config.mjs\n├── tailwind.config.ts\n└── tsconfig.json\n```\n\n## 🔧 Tech Stack\n\n- **Framework**: Next.js\n- **Database**: MongoDB\n- **Styling**: Tailwind CSS\n- **Language**: TypeScript/JavaScript\n- **UI Components**: Custom UI components\n\n## 📡 API Endpoints\n\n### Get a Random College\n\nRetrieve a random college from the database.\n\n**Endpoint:**\n```\nGET https://college-api-nextjs.vercel.app/api/random\n```\n\n**Example Response:**\n```json\n{\n  \"collegeCode\": \"zulekha-nursing-college-mangalore-mangalore-karnataka\",\n  \"collegeName\": \"Zulekha Nursing College,Mangalore - MANGALORE - Karnataka\"\n}\n```\n\n---\n\n### Get Colleges by Starting Letter\n\nRetrieve colleges that start with a specific letter.\n\n**Endpoint:**\n```\nGET https://college-api-nextjs.vercel.app/api/colleges?letter=z\n```\n\n**Query Parameters:**\n- `letter` (required): The starting letter of college names (a-z)\n\n**Example Response:**\n```json\n[\n  {\n    \"collegeCode\": \"zulekha-nursing-college-mangalore-mangalore-karnataka\",\n    \"collegeName\": \"Zulekha Nursing College,Mangalore - MANGALORE - Karnataka\"\n  },\n  {\n    \"collegeCode\": \"zenith-institute-of-science-\u0026-technology-orissa\",\n    \"collegeName\": \"Zenith Institute of Science \u0026 Technology - Orissa\"\n  }\n]\n```\n\n---\n\n### Get All Colleges\n\nRetrieve the complete list of all colleges.\n\n**Endpoint:**\n```\nGET https://college-api-nextjs.vercel.app/api/college\n```\n\n**Example Response:**\n```json\n[\n  {\n    \"collegeCode\": \"zulekha-nursing-college-mangalore-mangalore-karnataka\",\n    \"collegeName\": \"Zulekha Nursing College,Mangalore - MANGALORE - Karnataka\"\n  },\n  {\n    \"collegeCode\": \"zenith-institute-of-science-\u0026-technology-orissa\",\n    \"collegeName\": \"Zenith Institute of Science \u0026 Technology - Orissa\"\n  }\n  // ... more colleges\n]\n```\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Node.js (v16 or higher)\n- MongoDB database\n- npm or yarn\n\n### Installation\n\n1. Clone the repository:\n```bash\ngit clone https://github.com/the-bipu/college-api-nextjs.git\ncd college-api-nextjs\n```\n\n2. Install dependencies:\n```bash\nnpm install\n# or\nyarn install\n```\n\n3. Create a `.env.local` file in the root directory and add your MongoDB connection string:\n```env\nMONGODB_URI=your_mongodb_connection_string\n```\n\n4. Run the development server:\n```bash\nnpm run dev\n# or\nyarn dev\n```\n\n5. Open [http://localhost:3000](http://localhost:3000) in your browser.\n\n## 🌐 Deployment\n\nThis project is deployed on Vercel. You can deploy your own instance by:\n\n1. Pushing your code to a GitHub repository\n2. Importing the project in Vercel\n3. Adding your environment variables\n4. Deploying!\n\n## 📝 Usage Example\n\n### JavaScript/Node.js\n```javascript\n// Get a random college\nconst response = await fetch('https://college-api-nextjs.vercel.app/api/random');\nconst data = await response.json();\nconsole.log(data);\n\n// Get colleges starting with 'A'\nconst collegesA = await fetch('https://college-api-nextjs.vercel.app/api/colleges?letter=a');\nconst colleges = await collegesA.json();\nconsole.log(colleges);\n```\n\n### Python\n```python\nimport requests\n\n# Get a random college\nresponse = requests.get('https://college-api-nextjs.vercel.app/api/random')\ncollege = response.json()\nprint(college)\n\n# Get colleges starting with 'A'\nresponse = requests.get('https://college-api-nextjs.vercel.app/api/colleges?letter=a')\ncolleges = response.json()\nprint(colleges)\n```\n\n## 🤝 Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n\n1. Fork the project\n2. Create your feature branch (`git checkout -b feature/AmazingFeature`)\n3. Commit your changes (`git commit -m 'Add some AmazingFeature'`)\n4. Push to the branch (`git push origin feature/AmazingFeature`)\n5. Open a Pull Request\n\n## 📄 License\n\nThis project is open source and available under the [MIT License](LICENSE).\n\n## 👨‍💻 Author\n\n**the-bipu**\n\n## 🙏 Acknowledgments\n\n- Thanks to all contributors who have helped build this API\n- College data sourced from various public databases\n- Built with ❤️ using Next.js\n\n---\n\n**Copyright © the-bipu**\n\nFor issues, questions, or suggestions, please open an issue on GitHub.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-bipu%2Fcollege-api-nextjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthe-bipu%2Fcollege-api-nextjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthe-bipu%2Fcollege-api-nextjs/lists"}