Stripe: Stripe Go Stripe Go Charge Stripe Go Form Stripe Go Token
Glog: Golang Glog
MUX: Gorilla Mux
Postgresql: PQ PQ Oid PQ Scram
Enviroment Variables:
WEB_HOST, WEB_PORT, DATABASE_HOST, DATABASE_PORT, DATABASE_USER, DATABASE_PASSWORD, DATABASE_DBNAME, STRIPE_KEY
If Enviroment Variables are not exported in the working directory, the values can be fetched through the config.json file.
Sample Config File:
{
"dbHost": "postgres",
"dbPort": "5432",
"dbUser": "postgres",
"dbPassword": "StrongPassword",
"dbName": "postgres",
"webHost": "",
"webPort": "8000",
"stripeKey": "sk_test_##############"
}
Project uses the golang:alpine
image.
To run docker image:
docker build -t webserver .
docker run -p "8000:8000" webserver
Where 8000
is the WEB_PORT.
To run Docker Compose:
docker-compose build
docker-compose up