Skip to content

ahujatejas06/ras-backend

 
 

Repository files navigation

Contributors Forks Stargazers Issues LinkedIn


Logo

Recruitment Automation System

Backend for Recruitment Automation System
Visit the Portal »

Report Bug · Request Feature

Table of Contents
  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact

About The Project

Portal Screen Shot

The Recruitment Automation Portal facilitate information exchange between Students, Companies, and Placement Office for smooth conduction of placement and internship drives of IIT Kanpur.

This repository contains the backend code for the portal. The frontend code can be found here. The portal is hosted at https://placement.iitk.ac.in.

The 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. 😄

The five services are:

  • Auth Service
  • Student Service
  • Company Service
  • Recruitment Cycle Service
  • Application Service

Hence 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.

The 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. The routing can be found in the container/nginx.conf file.

The 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.

(back to top)

Built With

Built with love ❤️ by a team led by four shophomores- credits This section contains major frameworks/libraries used to bootstrap your project.

  • go
  • Postgres SQL
  • Nginx
  • Docker
  • Gin
  • Gorm

(back to top)

Getting Started

This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

  • Google Clould Credentials and google calender ID
  • Mail server credentials
  • Database setup and credentials (refer container/init.sql)
  • Go (refer go installation)

Installation

  1. Provision all required credentials and database
  2. Clone the repo
    git clone https://github.com/spo-iitk/ras-backend.git
  3. cp secret.yml.template to secret.yml and fill in the required credentials
  4. Save GCP credentials as secret.GCPcredentials.json
  5. Install go dependencies
    go mod download
  6. Build the project
    go build ./cmd/. -o ras-backend
  7. Run the project
    ./ras-backend

(back to top)

Usage

Please refer to the Documentation. (Still under construction)

(back to top)

Roadmap

  • Other role based access control
  • Strict check on db return values per role
  • Add tests
  • Cache & Pagination
  • Add Changelog

See the open issues for a full list of proposed features (and known issues).

(back to top)

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

If 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". Don't forget to give the project a star! Thanks again!

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

(back to top)

License

The 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.

(back to top)

Contact

Web heads 2022-23:

Project Link: https://github.com/spo-iitk/ras-backend

(back to top)

About

Backend for RAS portal of SPO IITK in golang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 99.2%
  • Other 0.8%