webapp API
- Shell 44.5%
- Go 44.4%
- Makefile 6.7%
- PLpgSQL 3.8%
- Dockerfile 0.6%
| docker/local | ||
| sql | ||
| src | ||
| .gitignore | ||
| Gopkg.lock | ||
| Gopkg.toml | ||
| Makefile | ||
| README.md | ||
| run.sh | ||
| setup.sh | ||
Story_ API
PostgreSQL backend and Golang echo server for story_.
Prerequisites
- docker-ce (Linux, MacOS, Windows 10 Pro/Enterprise, Windows 10 Home)
- docker-compose (Linux, MacOS: included with docker-ce, Windows: included with docker-ce)
- go
- dep
- git
- make
- openssl
Generate keys, pull docker images, and install Go packages.
$ make init
Setup (environment, docker containers)
First, source the setup script. This script exports necessary environment variables and starts the postgres docker container for the selected environment.
NOTE: an 'address already in use' error will probably occur if a local postgres client is already running
$ source setup.sh
Local Development
Starting the server, Dropping/Removing containers, Creating tables, inserting test data, dropping tables, etc. is all handled via the interactive script run.sh.
$ ./run.sh