Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Migrate to golang #1

Merged
merged 18 commits into from
Mar 23, 2024
Merged

Migrate to golang #1

merged 18 commits into from
Mar 23, 2024

Conversation

Qu1etboy
Copy link
Member

@Qu1etboy Qu1etboy commented Mar 23, 2024

What is this PR for

Migrate the codebase from Python to Go because it provides better performance and type safety.

Note

The API version 1 using Python is still available on Glitch

Live site

https://ku-transcript-backend-latest.onrender.com

Todos

  • Deploy to cloud
  • E2E test
  • Add logger
  • Add swagger

Features

  1. Get all curriculum (all courses)
  2. Upload transcript
  3. Check Graduation
  4. Handle wrong file types
  5. Handle file is not a transcript
  6. Calculate the total credit per category correctly

Tests

Run this command to execute all the tests, which currently has TestCalculateTotalCredits

go test -v ./...

Run with Docker

Build the image

docker build -t ku-transcript-backend .

Run the container

docker run --name ku-transcript-backend -p 3000:3000 ku-transcript-backend

Run without Docker

Build go binary

go build -o ku-transcript-backend cmd/main.go

Run the binary

./ku-transcript-backend

@Qu1etboy Qu1etboy merged commit 1f8887c into main Mar 23, 2024
@Qu1etboy Qu1etboy deleted the go branch March 23, 2024 21:41
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant