Repository ini merupakan aplikasi backend dengan bahasa golang yang digunakan untuk seleksi LKS DIY 2025 bidang Cloud Computing.
∩∩ ♡ i will always be
(・⩊・ ) moo-ing for you
∩ ∩( っ⌒っ with love & hugs
⊂⌒( ・ω・)ノ for lkscc fighter!
\_つ_/ ̄ ̄ ̄/
\/___/
- Docker
- Docker Compose
- AWS S3 Credentials
Just run those simple command!
go mod initthen
go mod tidyCreate a .env file and configure the following environment variables:
DB_USER=yourdbuser
DB_PASS=somethingsecret
DB_HOST=db
DB_PORT=3306
DB_NAME=student_db
REDIS_ADDR=redis:6379
AWS_REGION=us-east-1
AWS_ACCESS_KEY=your_access_key
AWS_SECRET_KEY=your_secret_key
AWS_BUCKET_NAME=your_bucket_name- Build and run the container:
docker-compose up --build -d
- The API will be available at
http://YOUR_IP_ADDRESS:8080
| Method | Endpoint | Description |
|---|---|---|
| POST | /students |
Create a student |
| GET | /students |
Get all students |
| GET | /students/:id |
Get student by ID |
| PUT | /students/:id |
Update student |
| DELETE | /students/:id |
Delete student |
| GET | /students/cache/:id |
Get student from cache |
- Stop the container:
docker-compose down