Table of Contents
About The Project
This is the backend API for the Coding Relay, SIAM-VIT's Flagship Event in VIT's fest, Yantra. 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:
- Real time leaderboard monitoring
- Team score updation
Built With
This project is built using the following technologies and frameworks:
Getting Started
To get a local copy up and running, follow these simple steps.
Prerequisites
Make sure you have the following installed:
- Go
- PostgreSQL 13 or higher
- Docker (optional but recommended)
Installation
-
Clone the repo
git clone https://github.com/SIAM-VIT/coding-relay-be.git
-
Change into the project directory
cd coding-relay-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
Contributors
|
Akshat Gupta
|
License
Distributed under the MIT License. See LICENSE for more information.
Made with :heart: by SIAM-VIT