Skip to content

lf1up/crypto-exchange

Repository files navigation

Crypto Exchange API Example

Crypto Exchange API Example

Development

Fill the .env file

FASTFOREX_API_KEY=<PUT_YOUR_KEY_HERE>
POSTGRES_USER=<PUT_YOUR_PG_USERNAME_HERE>
POSTGRES_PASSWORD=<PUT_YOUR_PG_PASSWORD_HERE>
POSTGRES_DB=<PUT_YOUR_PG_DB_NAME_HERE>
POSTGRES_HOST=127.0.0.1

Start the application in dev mode (hot code reloading)

make build
make up-db # if you still need the DB container
go run app.go -dev

Use local containers

# Shows all commands
make help

# Clean packages
make clean-packages

# Generate go.mod & go.sum files
make requirements

# Generate docker images
make build

# Generate docker images with no cache
make build-no-cache

# Run the project and SSH into the main container
make up

# Run local containers in background
make up-silent

# Run local containers in background with prefork
make up-silent-prefork

# Stop containers
make stop

# Start containers
make start

# Purge the database volume
make purge-db-volume

Production

# See the Makefile script section for build info
make up-silent-prefork

Brief Intorduction

Access the API at http://localhost:3000/api/v1/

Full Swagger documentation (with the API playground) can be found at http://localhost:3000/swagger/

See the app.go for more info.

About

Crypto exchange API example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published