The backend application for the PairProfit software.
Authentication is with simple jwt. Token expiration times are stored in Redis and subsequently considered during authentication to cater for validity of tokens when a users logs out.
Create a .env
file based on the following template
AWS_REGION="eu-central-1"
COOKIE_DOMAIN="localhost"
APP_ENVIRONMENT="local" #for local dev
COOKIE_SECURE_ENABLE=false
DECODING_SECRET="09WJPdT9BUBXhH4A"
ALLOWED_ORIGIN="http://localhost:3000"
COOKIE_HTTPONLY=true
HUBSPOT_ENABLE=false
make # for debug mode
make run-debug # for debug mode
make run-release # for release mode
docker compose up --build
Add missing YAML tags in settings.json, otherwise you'll see validation errors in triggers/template.yaml
.
"yaml.customTags": ["!Ref", "!GetAtt"]
Import postman_collection.json
and test the flow.
Some important links regarding validators
protoc -I=pb --go_out=. pb/*.proto
To be able to view the entire structure of the code as well the documentation, godocs package is used. This is easily installed using
go install golang.org/x/tools/cmd/godoc@latest
This can then be served locally using any port of choice as follows
godoc -http=:6060
Navigate then to the link http://localhost:6060
in the browser to explore the docs as well as any added examples from the source code as well as from external packages.