Skip to content

paulus-otto-harman/project-POS-APP-golang-team1

Repository files navigation

Project POS App Team 1

Project POS App is chapter 50-55 Team Project

Installation

clone this project and install dependencies

go mod tidy

Environment Variables

copy .env.example to .env

copy .env.example .env

Database Migration and Seeding

by default, migration and seeding are disabled
to enable them, set DB_MIGRATION and DB_SEEDING in .env to true
to disable, set DB_MIGRATION and DB_SEEDING in .env to false
to overrides .env, use flags -m and -s

cd cmd
go run . -m -s

The flag -m overrides .env DB_MIGRATE
and flag -s overrides .env DB_SEEDING

.env flag result
flag
.env
flag
default

Documentation (Swagger)

to generate swagger API documentation, from project root, run

swag init -g cmd/main.go

Note

The generated swagger docs won't be committed to this project repository

Cron Jobs

to run cron jobs, go to folder cmd/cron

cd cmd/cron
go run .

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •