fiyuang / hacktiv8-techrawih-go-product-sale

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Go Techrawih (Hacktiv8 Workshop)
Unoptimzed Version

Description

A simple import data demo to process and analyze >10,000 data in a CSV file. There is a feature to process and analyze product sales data from an online store over a period of 1 year, and the feature is Import Sales Data. The goal of the analysis is to determine the total net sales and total gross sales for each product available.

Tech Used

GO GIN Postgres

Getting Start:

Before you running the program, make sure you've run this command:

  • cp .env.example .env
  • go mod tidy
  • make db-migrate-seed

Run the program

  • make dev
  • make dev-race-condition for build-in race detector

The program will run on http://localhost:3000

API Route List

Method URL Description
POST localhost:3000/api/v1/sales/import Import File CSV of Sales

About


Languages

Language:Go 97.9%Language:Makefile 1.4%Language:Shell 0.7%