Skip to content

sksmith/smfg-inventory

Repository files navigation

SMFG - Inventory

This service provides several REST endpoints.

TODO

  • Make sure the application can run from scratch using docker compose
  • A link to the parent project
  • How do you run the project?
  • How do you build the project?
  • Add a link to the swagger file
  • Lookup a nice README to emulate

Updating the Project

git add .
git commit -m "your message"
git tag v0.0.1
git push origin v0.0.1
docker build . -t smfg-inventory:latest
sudo docker build . --tag docker-registry:5000/smfg-inventory:1.0
sudo docker push docker-registry:5000/smfg-inventory:1.0

Running the Project

If you wish to see how this application runs in its complete constellation, see the parent repo.

If you just want to run this specific microservice locally...

Build the docker container

docker build . -t smfg-inventory:latest

Run Docker Compose

docker-compose up

Database Migrations

I'm using the migrate project to manage database migrations.

migrate create -ext sql -dir db/migrations -seq create_products_table

migrate -database postgres://postgres:postgres@localhost:5432/smfg-db?sslmode=disable -path db/migrations up

migrate -source file://db/migrations -database postgres://localhost:5432/database down

About

Inventory service for Smith Manufacturing

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages