this project uses a golang framework, gofiber
Before you start:
- Be sure you've installed go programming language to your device
- Be sure you have a MongoDB cluster connection URL & Redis connection URL
example .env file:
MONGO_URI="mongodb://localhost:27017/"
REDIS_URI="redis://127.0.0.1:6379"
# JWT settings:
JWT_SECRET_KEY="SUPER_SECRET_KEY"
JWT_SECRET_KEY_EXPIRE_MINUTES_COUNT=15
PORT=":8080"
IMAP_S_HOST="-student-imap-server-domain-"
IMAP_T_HOST="-academic-imap-server-domain-"
IMAP_PORT=993
- Download modules
go mod download
- Install swagger
go install github.com/swaggo/swag/cmd/swag@latest
- Initialize docs
swag init
- Create & fill the .env file
- Run the application
go run .