Skip to content

yalinn/272-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

56 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Probee API

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

To start:

  1. Download modules
go mod download
  1. Install swagger
go install github.com/swaggo/swag/cmd/swag@latest
  1. Initialize docs
swag init
  1. Create & fill the .env file
  2. Run the application
go run .