Coder Social home page Coder Social logo

derangga / shopifyx Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 0.0 104 KB

Shopifyx adalah platform yang memungkinkan pengguna untuk menjual dan membeli berbagai macam produk, mulai dari pakaian, elektronik, buku, hingga barang-barang handmade Fokus mereka adalah entry barrier yang mudah dan payment yang instan, karena mereka ingin bermain di market dimana user bisa langsung jualan dan dapat uang secara instan

Go 96.40% PLpgSQL 2.30% Makefile 1.30%

shopifyx's Introduction

What service is this?

Shopifyx service.

Development Normal

  • Isi env sesuai dengan yang di env.example
  • go mod download kalau belum.
  • go get -u -d github.com/golang-migrate/migrate/cmd/migrate untuk install golang migrate
  • Jalankan. go run cmd/rest/main.go.

Create migration

  • migrate create -ext sql -dir db/migrations -seq add_user_table
  • migrate -database "postgres://username:password@host:port/dbname?sslmode=disable" -path db/migrations up
  • migrate -database "postgres://username:password@host:port/dbname?sslmode=disable" -path db/migrations down

Specs

Tech Stack

  • Golang
  • Gin
  • PostgreSQL
  • JWT

Dependency

shopifyx's People

Contributors

magazein avatar mohammadalviyan avatar derangga avatar swaraadam avatar

Stargazers

 avatar

Watchers

 avatar  avatar

shopifyx's Issues

Fetch Product

  • GET /v1/product
    • param (semuanya optional)
      • userOnly (boolean)
        • true return products that only this user have
      • limit & offset (number)
        • display how much data in single request
      • tags ([]string) tags=clothes&tags=bird
        • filter based on tags
      • condition (”new”|”second”)
        • filter based on condition
      • showEmptyStock (boolean)
        • true return products that also have empty stocks
      • maxPrice & minPrice (number)
        • display the range of price that should be displayed
      • sortBy (”price”|”date”)
        • display the range of price that should be displayed
      • orderBy (”asc”|”dsc”)
      • search (string)
        • display product that contains the name of search

Create Payment

  • Response:
    • 200 payment processed successfully
  • Errors:
    • 400 if payment details are invalid (e.g., insufficient quantity, incorrect payment information)
    • 401 unauthorized (if auth header not exists)
    • 500 if processing fails

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.