Skip to content

Backend application for MyPoints WebApp - Final Project Alterra Academy (MBKM)

Notifications You must be signed in to change notification settings

yossdev/mypoints-rest-api

Repository files navigation

mypoints-rest-api

CI

Backend application for MyPoints WebApp - Final Project Alterra Academy (MBKM)

PTT Project

MyPointsPPT

APIs Documentation

MyPoints REST APIs

API Server tech-stack:

  • Server code: go1.17
  • REST Server: fiber v2
  • Database: PostgreSQL, MongoDB
  • ORM: gorm
  • Nginx & Cloudflare

Third-party API used:

CI/CD

Other technology

  • air - ☁️ Live reload for Go apps.
  • xendit - Go library from xendit
  • uuid - Go package for UUIDs based on RFC 4122 and DCE 1.1: Authentication and Security Services.
  • bcrypt - Package bcrypt implements Provos and Mazières's bcrypt adaptive hashing algorithm.
  • validator v10 - Go Struct and Field validation.
  • swaggo - Automatically generate RESTful API documentation with Swagger 2.0 for Go.
  • fiber-swagger - Fiber middleware to automatically generate RESTful API documentation with Swagger 2.0.
  • viper - Go configuration with fangs.
  • mockery - A mock code autogenerator for Golang.
  • testify - A toolkit with common assertions and mocks that plays nicely with the standard library.

Architecture

Clean Architecture - Uncle Bob

|-- configs
|-- infrastructures
|   |-- db
|-- internal
|   |-- middleware
|   |-- routes
|   |-- utils
|   |-- web
|-- src
|   |-- [module_name]
|       |-- dto
|       |-- entities
|       |-- handlers
|       |-- repositories
|       |-- router
|       |-- services

The diagram:

golang clean architecture

ERD

ERD

About

Backend application for MyPoints WebApp - Final Project Alterra Academy (MBKM)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages