Skip to content

API for a web service that notifies you when your favorite clothing product is stocked.

Notifications You must be signed in to change notification settings

kristiyann/sneaky-spider-api

Repository files navigation

Sneaky Spider Web App

API Documentation

https://documenter.getpostman.com/view/17475694/2s93CPrCw6

Getting started (Setup & Running)

Prerequisites

Install the Go programming language.

Install docker.

Then install Go modules

go mod tidy

Running the application

To run database migrations. "D:/Projects/go" should be replaced with your local path to the project.

docker run -v D:/Projects/af1-spider-web-app/migrations:/migrations --network host migrate/migrate -path=/migrations/ -database "<your-postgres-address>" up

To clear the database:

docker run -v D:/Projects/af1-spider-web-app/migrations:/migrations --network host migrate/migrate -path=/migrations/ -database "<your-postgres-address>" down -all

To start the API:

make run

or

go run main.go

To start the Alerts Service:

go run alerts/cmd/main.go

Testing

make test

or

go test -v ./...

About

API for a web service that notifies you when your favorite clothing product is stocked.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages