-
Run
go mod download
command to download dependenciesgo mod download
-
Copy the .env.example file to
.env
and change variables to what you needcp .env.example .env && nano .env
-
Start the postgres database
ⓘ NOTE: If you're starting the program by running the taskfile command, you can skip this step because DB will start up automatically, and it does not need additional configuration.
export POSTGRES_PORT=5432 POSTGRES_USER=postgres POSTGRES_PASSWORD=postgres POSTGRES_DB=btc cd containers && docker-compose -f database.yml up -d && cd ..
Or use next taskfile command:
task db
-
Start the keycloak
export KEYCLOAK_PORT=1141 KEYCLOAK_ADMIN=user KEYCLOAK_ADMIN_PASSWORD=bitnami cd containers && docker-compose -f keycloak.yaml up -d && cd ..
Or use next taskfile command:
task kc
-
Configure keycloak and paste KEYCLOAK_CLIENT_ID and KEYCLOAK_CLIENT_CREDENTIALS variables to .env file
-
Run the following command to start server:
go run main.go
Or you can run
Run
configuration if you are usingGoland
Or you can run the following taskfile command:
task run
-
Import
BTC
collection andBTC-Local
environment intoPostman
program -
Send request throw
Postman
-
Notifications
You must be signed in to change notification settings - Fork 0
computools/btc-poc-backned
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published