Giter Club home page Giter Club logo

golang-final-project-4-team-8's Introduction

Hacktiv8 Golang Final Project 4 Team 8

Link Deploy API

https://golang-final-project-4-team-8-production.up.railway.app

Link Postman Documentation

https://documenter.getpostman.com/view/21171989/2s8YzXtzBq

Anggota

  1. Mochamad Suhri Ainur Rifky (GLNG-KS04-001)
  2. Raden Muhammad Yudie Sanjaya (GLNG-KS04-016) โŒ
  3. Varrel Marcellius (GLNG-KS04-021)

Pembagian Tugas

  1. Mochamad Suhri Ainur Rifky (GLNG-KS04-001)
  • API Product
  • API Transaction History
  • Postman (Collection, Environment, Documentation)
  1. Raden Muhammad Yudie Sanjaya (GLNG-KS04-016) โŒ

  2. Varrel Marcellius (GLNG-KS04-021)

  • Setup project
  • API User
  • API Category
  • Readme
  • Deploy
  • Unit Test

Cara Install

  1. run docker compose up untuk menjalankan database
  2. run go run main.go seeder untuk menjalankan aplikasi dan seeder admin
  3. run go run main.go untuk menjalankan aplikasi jika sudah pernah seeder admin

Credential Admin

email: [email protected]
password: admin123

List Route

Users

  • POST - /users/register. Digunakan customer untuk registrasi
  • POST - /users/login. Digunakan admin dan customer untuk login
  • PATCH - /users/topup. Digunakan admin dan customer untuk topup balance

Categories

  • POST - /categories. Digunakan admin untuk membuat kategori baru
  • GET - /categories. Digunakan admin untuk mendapat semua data kategori
  • PATCH - /categories/:categoryId. Digunakan admin untuk mengupdate kategori
  • DELETE - /categories/:categoryId. Digunakan admin untuk menhapus kategori

Products

  • POST - /products. Digunakan admin untuk membuat produk baru
  • GET - /products. Digunakan admin dan pengguna untuk mendapat semua data produk
  • PUT - /products/:productId. Digunakan admin untuk mengupdate produk
  • DELETE - /products/:productId. Digunakan admin untuk menghapus produk

Transaction Histories

  • POST - /transactions. Digunakan customer untuk melakukan transaksi
  • GET - /transactions/my-transactions. Digunakan customer untuk mendapat semua data transaksi
  • GET - /transactions/user-transactions. Digunakan admin untuk melihat seluruh data transaksi customer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.