UserService RESTful Go server
Configuration
Create the following sub-folders:
Then edit configFiles/config.yaml
file and use cfgcrypt to encrypt it.
Example config file
db:
port: 27017
server: mongodb
database: databaseName
username: databaseUserName
password: #{{someDatabasePassword}}#
log:
path: /log/server.log
level: defaultLogLevel
http:
hostname: '' # leave blank for production
port: 80
Prerequisites
Build
habitus
Run
docker-compose up
Development
To add source to go path, cd
to this folder and run export GOPATH=$GOPATH:
pwd``