⚠️ Note: This repository has been archived and will no longer receive updates. For further information on the project's status and brand identity, please refer to the organization's README.
The MIT-ARS, originally built for MIT Bengaluru, aims to reduce the manual work of information collection and handling that's required from institutions when applying for several nation-level accreditations.
This repository acts in conjunction with the MIT-ARS Website, and provides the API queries and responses required by the frontend to process and showcase data.
The database schema, which can also be found at
/schema.sql
.
- Sanic, a web framework for Python.
- Poetry, for Python dependency management.
- PostgreSQL, for data storage and organization.
- Docker, for containerization and deployment.
Details about the UI and demonstration can be found in the frontend repository.
Install the dependency manager.
pip install poetry
Install the dependencies.
poetry install
Configure the environment variables in .env
.
# Boolean to signal that the environment is Production (DEFAULTS TO FALSE)
IS_PROD=
# Name of Issues of JWT Token
HOST=DEMO
# Number of Trusted Proxies
PROXIES_COUNT=
# Postgres Server Host Address
DB_HOST=localhost
# Postgres Server Port
DB_PORT=5432
# Postgres Database Name
DB_NAME=ars
# Postgres Username
DB_USERNAME=root
# Postgres User Password
DB_PASSWORD=password
Generate an RSA key-pair.
openssl genrsa -out private.pem 2048
openssl rsa -in private.pem -pubout -out public.pem
Run the development server using the following command.
poetry run task server