{"id":21143942,"url":"https://github.com/spo-iitk/phd-pas-backend","last_synced_at":"2026-02-13T20:33:49.927Z","repository":{"id":218747001,"uuid":"702691691","full_name":"spo-iitk/Phd-PAS-backend","owner":"spo-iitk","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-17T19:36:26.000Z","size":21548,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-05T13:53:01.057Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/spo-iitk.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}},"created_at":"2023-10-09T20:09:30.000Z","updated_at":"2025-01-17T19:36:29.000Z","dependencies_parsed_at":"2025-01-17T20:26:03.367Z","dependency_job_id":"5ee7e7aa-b7a4-444e-9c33-c5bea33e1b3d","html_url":"https://github.com/spo-iitk/Phd-PAS-backend","commit_stats":null,"previous_names":["spo-iitk/phd-pas-backend"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spo-iitk/Phd-PAS-backend","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spo-iitk%2FPhd-PAS-backend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spo-iitk%2FPhd-PAS-backend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spo-iitk%2FPhd-PAS-backend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spo-iitk%2FPhd-PAS-backend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spo-iitk","download_url":"https://codeload.github.com/spo-iitk/Phd-PAS-backend/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spo-iitk%2FPhd-PAS-backend/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29417274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"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":[],"created_at":"2024-11-20T08:03:56.342Z","updated_at":"2026-02-13T20:33:49.913Z","avatar_url":"https://github.com/spo-iitk.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- Improved compatibility of back to top link: See: https://github.com/spo-iitk/ras-backend/pull/73 --\u003e\n\n\u003ca name=\"readme-top\"\u003e\u003c/a\u003e\n\n\u003c!--\n*** Thanks for checking out the Best-README-Template. If you have a suggestion\n*** that would make this better, please fork the repo and create a pull request\n*** or simply open an issue with the tag \"enhancement\".\n*** Don't forget to give the project a star!\n*** Thanks again! Now go create something AMAZING! :D\n--\u003e\n\n\u003c!-- PROJECT SHIELDS --\u003e\n\u003c!--\n*** I'm using markdown \"reference style\" links for readability.\n*** Reference links are enclosed in brackets [ ] instead of parentheses ( ).\n*** See the bottom of this document for the declaration of the reference variables\n*** for contributors-url, forks-url, etc. This is an optional, concise syntax you may use.\n*** https://www.markdownguide.org/basic-syntax/#reference-style-links\n--\u003e\n\n[![Contributors][contributors-shield]][contributors-url]\n[![Forks][forks-shield]][forks-url]\n[![Stargazers][stars-shield]][stars-url]\n[![Issues][issues-shield]][issues-url]\n[![LinkedIn][linkedin-shield]][linkedin-url]\n\n\u003c!-- PROJECT LOGO --\u003e\n\u003cbr /\u003e\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://spo.iitk.ac.in/gh/\"\u003e\n    \u003cimg src=\".github/images/logo.png\" alt=\"Logo\" width=\"500\"\u003e\n  \u003c/a\u003e\n\n  \u003ch3 align=\"center\"\u003eRecruitment Automation System\u003c/h3\u003e\n\n  \u003cp align=\"center\"\u003e\n    Backend for Recruitment Automation System\n    \u003cbr /\u003e\n    \u003ca href=\"https://placement.iitk.ac.in/\"\u003e\u003cstrong\u003eVisit the Portal »\u003c/strong\u003e\u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e\n    \u003c!-- \u003ca href=\"https://github.com/spo-iitk/ras-backend\"\u003eView Demo\u003c/a\u003e --\u003e\n    \u003c!-- · --\u003e\n    \u003ca href=\"https://github.com/spo-iitk/ras-backend/issues\"\u003eReport Bug\u003c/a\u003e\n    ·\n    \u003ca href=\"https://github.com/spo-iitk/ras-backend/issues\"\u003eRequest Feature\u003c/a\u003e\n  \u003c/p\u003e\n\u003c/div\u003e\n\n\u003c!-- TABLE OF CONTENTS --\u003e\n\u003cdetails\u003e\n  \u003csummary\u003eTable of Contents\u003c/summary\u003e\n  \u003col\u003e\n    \u003cli\u003e\n      \u003ca href=\"#about-the-project\"\u003eAbout The Project\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#built-with\"\u003eBuilt With\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\n      \u003ca href=\"#getting-started\"\u003eGetting Started\u003c/a\u003e\n      \u003cul\u003e\n        \u003cli\u003e\u003ca href=\"#prerequisites\"\u003ePrerequisites\u003c/a\u003e\u003c/li\u003e\n        \u003cli\u003e\u003ca href=\"#installation\"\u003eInstallation\u003c/a\u003e\u003c/li\u003e\n      \u003c/ul\u003e\n    \u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#usage\"\u003eUsage\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#roadmap\"\u003eRoadmap\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contributing\"\u003eContributing\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#license\"\u003eLicense\u003c/a\u003e\u003c/li\u003e\n    \u003cli\u003e\u003ca href=\"#contact\"\u003eContact\u003c/a\u003e\u003c/li\u003e\n  \u003c/ol\u003e\n\u003c/details\u003e\n\n\u003c!-- ABOUT THE PROJECT --\u003e\n\n## About The Project\n\n[![Portal Screen Shot](.github/images/screenshot.png)](https://placement.iitk.ac.in)\n\nThe Recruitment Automation Portal facilitate information exchange between Students, Companies, and Placement Office for smooth conduction of placement and internship drives of IIT Kanpur.\n\nThis repository contains the backend code for the portal. The frontend code can be found [here](https://github.com/spo-iitk/ras-frontend). The portal is hosted at [https://placement.iitk.ac.in](https://placement.iitk.ac.in).\n\nThe portal is built using golang and postgresql. The architecture of the portal is that of a microservice architecture. The portal is divided into multiple services, each of which is responsible for a specific task. Since the current setup is entirly on one machine, the services communicate with each other using IPC once they are shifted to distributed machines gRPC can be used. The portal uses a nginx reverse proxy to route requests to the appropriate service. :smile:\n\nThe five services are:\n\n- Auth Service\n- Student Service\n- Company Service\n- Recruitment Cycle Service\n- Application Service\n\nHence five diffrent databases are used. The databases and users are created automatically using the script at `container/init.sql`. The database schema is defined in the `model.go` folder of each service.\n\nThe code for the portal exposes nine port corresponding to the nine sub services. The nginx reverse proxy is configured to route requests to the appropriate service.\nThe routing can be found in the `container/nginx.conf` file.\n\nThe mail service is provided by IITK mail servers. Google calender IDs to sync portal events with calender are generated from spo web team Gmail ID. The credentials are stored in the `secret.yml` file.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n### Built With\n\nBuilt with love :heart: by a team led by four shophomores- [credits](https://placement.iitk.ac.in/credits) This section contains major frameworks/libraries used to bootstrap your project.\n\n- [![go][golang]][go-url]\n- [![Postgres SQL][psql]][psql-url]\n- [![Nginx][nginx]][nginx-url]\n- [![Docker][docker]][docker-url]\n- [![Gin][gin]][gin-url]\n- [![Gorm][gorm]][gorm-url]\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- GETTING STARTED --\u003e\n\n## Getting Started\n\nThis is an example of how you may give instructions on setting up your project locally.\nTo get a local copy up and running follow these simple example steps.\n\n### Prerequisites\n\nThis is an example of how to list things you need to use the software and how to install them.\n\n- Google Clould Credentials and google calender ID\n- Mail server credentials\n- Database setup and credentials (refer `container/init.sql`)\n- Go (refer [go installation](https://golang.org/doc/install))\n\n### Installation\n\n1. Provision all required credentials and database\n2. Clone the repo\n   ```sh\n   git clone https://github.com/spo-iitk/ras-backend.git\n   ```\n3. cp `secret.yml.template` to `secret.yml` and fill in the required credentials\n4. Save GCP credentials as `secret.GCPcredentials.json`\n5. Install go dependencies\n   ```sh\n   go mod download\n   ```\n6. Build the project\n   ```sh\n   go build ./cmd/. -o ras-backend\n   ```\n7. Run the project\n   ```sh\n   ./ras-backend\n   ```\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n## Usage\n\nPlease refer to the [Documentation](#). (Still under construction)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- ROADMAP --\u003e\n\n## Roadmap\n\n- [ ] Other role based access control\n- [ ] Strict check on db return values per role\n- [ ] Add tests\n- [ ] Cache \u0026 Pagination\n- [ ] Add Changelog\n\nSee the [open issues](https://github.com/spo-iitk/ras-backend/issues) for a full list of proposed features (and known issues).\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTRIBUTING --\u003e\n\n## Contributing\n\nContributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are **greatly appreciated**.\n\nIf you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag \"enhancement\".\nDon't forget to give the project a star! Thanks again!\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\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- LICENSE --\u003e\n\n## License\n\nThe repository is not available for public use. In case a voilation is found, the repository will be made private and IIT Kanpur will be taking action. Please contact the maintainers for more information.\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- CONTACT --\u003e\n\n## Contact\n\nWeb heads 2022-23:\n\n- Harshit Raj - [harshitraj.me](https://1-Harshit.github.io) - harshitr@cse.iitk.ac.in\n- Abhishek Shree - [abhishekshree.me](https://abhishekshree.github.io) - shreea20@iitk.ac.in\n\nProject Link: [https://github.com/spo-iitk/ras-backend](https://github.com/spo-iitk/ras-backend)\n\n\u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e\n\n\u003c!-- ACKNOWLEDGMENTS --\u003e\n\n\u003c!-- ## Acknowledgments\n\nWill be updated soon!\n\n- [Choose an Open Source License](https://choosealicense.com)\n- [GitHub Emoji Cheat Sheet](https://www.webpagefx.com/tools/emoji-cheat-sheet)\n- [Malven's Flexbox Cheatsheet](https://flexbox.malven.co/)\n- [Malven's Grid Cheatsheet](https://grid.malven.co/)\n- [Img Shields](https://shields.io)\n- [GitHub Pages](https://pages.github.com)\n- [Font Awesome](https://fontawesome.com)\n- [React Icons](https://react-icons.github.io/react-icons/search) --\u003e\n\n\u003c!-- \u003cp align=\"right\"\u003e(\u003ca href=\"#readme-top\"\u003eback to top\u003c/a\u003e)\u003c/p\u003e --\u003e\n\n\u003c!-- MARKDOWN LINKS \u0026 IMAGES --\u003e\n\u003c!-- https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n\n[contributors-shield]: https://img.shields.io/github/contributors/spo-iitk/ras-backend.svg?style=for-the-badge\n[contributors-url]: https://github.com/spo-iitk/ras-backend/graphs/contributors\n[forks-shield]: https://img.shields.io/github/forks/spo-iitk/ras-backend.svg?style=for-the-badge\n[forks-url]: https://github.com/spo-iitk/ras-backend/network/members\n[stars-shield]: https://img.shields.io/github/stars/spo-iitk/ras-backend.svg?style=for-the-badge\n[stars-url]: https://github.com/spo-iitk/ras-backend/stargazers\n[issues-shield]: https://img.shields.io/github/issues/spo-iitk/ras-backend.svg?style=for-the-badge\n[issues-url]: https://github.com/spo-iitk/ras-backend/issues\n[linkedin-shield]: https://img.shields.io/badge/-LinkedIn-black.svg?style=for-the-badge\u0026logo=linkedin\u0026colorB=555\n[linkedin-url]: https://www.linkedin.com/in/iitkanpurplacement\n[golang]: https://img.shields.io/github/go-mod/go-version/spo-iitk/ras-backend?style=for-the-badge\n[go-url]: https://golang.org/\n[psql]: https://img.shields.io/badge/postgres-%23316192.svg?style=for-the-badge\u0026logo=postgresql\u0026logoColor=white\n[psql-url]: https://www.postgresql.org/\n[nginx]: https://img.shields.io/badge/nginx-%23009639.svg?style=for-the-badge\u0026logo=nginx\u0026logoColor=white\n[nginx-url]: https://www.nginx.com/\n[docker]: https://img.shields.io/badge/docker-%230db7ed.svg?style=for-the-badge\u0026logo=docker\u0026logoColor=white\n[docker-url]: https://www.docker.com/\n[gin]: https://img.shields.io/badge/gin-%23FF4088.svg?style=for-the-badge\u0026logo=gin\u0026logoColor=white\n[gin-url]: https://gin-gonic.com/\n[gorm]: https://img.shields.io/badge/gorm-%23FF4088.svg?style=for-the-badge\u0026logo=gorm\u0026logoColor=white\n[gorm-url]: https://gorm.io/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspo-iitk%2Fphd-pas-backend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspo-iitk%2Fphd-pas-backend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspo-iitk%2Fphd-pas-backend/lists"}