Skip to content

juanfer2/whorship_band

Repository files navigation

Pay Services

App for test works with products

Config

Previusly to setup the project it's necesary isntall

  • Postgres
  • Make

Then next commands

make copy-config

This command generate diferents files in src/shared/infrastructure/persistence/postgres/config/database_development.yml in which you must add your credentials postgrest

drive: postgres
username: username
password: pasword
host: localhost
port: 5432
database: 'shopy_dc_dev'

Now run next command for install go dependencies

go mod tidy
go install

Then you can create a database

go run ./main.go db:create

Then you can run migrations

go run ./main.go migration run

Finally run this command for fill database with data

go run ./main.go db:seed products

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published