Skip to content

About

Infrastructure-as-code and deployment repository primarily built with Go, designed to provision and manage a scalable, cloud-native architecture

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

6 Commits

Folders and files

Repository files navigation

LKS Cloud Computing DIY 2025

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!
  \_つ_/ ̄ ̄ ̄/  
    \/___/

Prerequisites

  • Docker
  • Docker Compose
  • AWS S3 Credentials

Init repo

Just run those simple command!

go mod init

then

go mod tidy

Environment Variables

Create 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

How to Run with Docker

  1. Build and run the container:
    docker-compose up --build -d
  2. The API will be available at http://YOUR_IP_ADDRESS:8080

API Endpoints

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
  1. Stop the container:
    docker-compose down

About

Infrastructure-as-code and deployment repository primarily built with Go, designed to provision and manage a scalable, cloud-native architecture

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages