zcommerce

command module
v0.0.0-...-7544875 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 31, 2022 License: Apache-2.0 Imports: 1 Imported by: 0

README

Basic App Development

Ecommerce workflow sederhana, handle order dan payment page.

Feature

  • Order Service
    • Checkout
      • register to payment service
      • store and locking items
      • redirect to payment service page
    • Placed
      • update order to order placed
  • Payment Service
    • Register Payment
      • store and locking items
    • Payment Page
      • choose payment type
      • simulating payment process
  • Account Service
    • Register
      • Create Account
    • Login
      • Return token
  • Catalog Service

Running

docker-compose build
docker-compose up

# run specific container
docker-compose up -d --no-deps --build order

Dependencies

Migrate

Run postgre on docker

docker run \
  -d \
  -e POSTGRES_HOST_AUTH_METHOD=trust \
  -e POSTGRES_USER=root \
  -e POSTGRES_PASSWORD=root \
  -e POSTGRES_DB=commerce \
  -p 5432:5432 \
  --name commercedb \
  postgres:12.5-alpine

Export Variable

export POSTGRESQL_URL='postgres://sa:zcommerce@localhost:5432/commerce?sslmode=disable'
Create migrations
migrate create -ext sql -dir db/migrations/schemas -seq create_order_table
Run Migrations
migrate -database ${POSTGRESQL_URL} -path db/migrations/schemas up

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL