This is the backend API for the Math Premier League (MPL), SIAM-VIT's Flagship Event in VIT's fest, GraVITas. The API is responsible for handling user authentication, team registration, and leaderboard updation. The API is built using Go and PostgreSQL, and Redis is used for caching.
Key Features:
- User authentication and authorization
- Real time leaderboard monitoring
- Team score updation
This project is built using the following technologies and frameworks:
To get a local copy up and running, follow these simple steps.
Make sure you have the following installed:
- Go
- PostgreSQL 13 or higher
- Docker (optional but recommended)
-
Clone the repo
git clone https://github.com/SIAM-VIT/MPL-be.git
-
Change into the project directory
cd MPL-be
-
Install dependencies
go mod download
-
Set up PostgreSQL and configure .env with your database credentials:
# Postgres Configuration DB_HOST=abc DB_PORT=abc DB_USER=abc DB_PASSWORD=abc DB_NAME=abc # Redis Configuration REDIS_HOST=abc REDIS_PORT=abc REDIS_PASSWORD=abc REDIS_DB=abc REDIS_URI=abc JWT_SECRET_KEY=abc
-
Start the application
go run cmd/main.go
Akshat Gupta |
Distributed under the MIT License. See LICENSE for more information.
Made with ❤️ by SIAM-VIT