api

command module
v0.0.0-...-297613f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 15, 2024 License: MIT Imports: 7 Imported by: 0

README

Spice Republic API

Development

go mod download
go run main.go

or

go run .

// if you want to use auto-reload add this
go install github.com/cosmtrek/air@latest

and then just run 

air
you can use docker for development if you want
cp .env.example .env
docker build -t spice-republic-api -f Dockerfile.dev .
docker run --name spice-republic-api-dev -dit -p 3232:8080 -v $(pwd):/usr/src/app spice-republic-api:latest
docker exec -it spice-republic-api air

then open localhost:3232

Production

docker build -t spice_republic_api -f Dockerfile .
docker run -dit -e API_TOKEN=<API_TOKEN> --name spice_republic_api_prod -p 3244:8080  spice_republic_api_production:latest

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL