GithubHelp home page GithubHelp logo

coding-assestment / fp2022-majoo-go Goto Github PK

View Code? Open in Web Editor NEW

This project forked from upgradeskill/fp2022-majoo-go

0.0 0.0 0.0 89 KB

fp2022-majoo-go created by GitHub Classroom

Go 98.30% Dockerfile 1.70%

fp2022-majoo-go's Introduction

API Mini POS - Golang

1. Set Up Project

  • Clone repository
  • Import file mini-pos.sql ke database
  • Import file golang mini pos.postman_collection.json ke postman
  • Buat file .env sejajar dengan file .env.example
  • Sesuaikan konfigurasi yang terdapat pada file .env.example
  • Jalankan perintah
    go mod tidy
    

2. Run Project

  • Masuk ke folder
  • Jalankan perintah
    go run .server.go
    
  • Server akan berjalan pada http://localhost:9000

3. ERD Mini POS

Screen Shot 2022-08-11 at 14 13 27

5 API List

  • User
    • POST login
    • POST register
    • POST user/store
    • GET user
    • GET user/show/:id
    • PUT user/update/:id
    • DELETE user/delete/:id
  • Outlet
    • POST outlet/store
    • GET outlet
    • GET outlet/show/:id
    • PUT outlet/update/:id
    • DELETE outlet/delete/:id
  • Category
    • POST category/store
    • GET category
    • GET category/show/:id
    • PUT category/update/:id
    • DELETE category/delete/:id
  • Product
    • POST product/store
    • GET product
    • GET product/show/:id
    • PUT product/update:id
    • DELETE product/delete/:id
  • Transaction
    • POST transaction/store
    • GET transaction
    • GET transaction/show/:id
    • PUT transaction/update/:id
    • DELETE transaction/delete/:id

fp2022-majoo-go's People

Contributors

github-classroom[bot] avatar

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.