webapp API
  • Shell 44.5%
  • Go 44.4%
  • Makefile 6.7%
  • PLpgSQL 3.8%
  • Dockerfile 0.6%
Find a file
2019-07-18 01:13:38 +09:00
docker/local feat: first commit. Go echo server with PostgreSQL 11.4 docker container 2019-07-18 01:13:38 +09:00
sql feat: first commit. Go echo server with PostgreSQL 11.4 docker container 2019-07-18 01:13:38 +09:00
src feat: first commit. Go echo server with PostgreSQL 11.4 docker container 2019-07-18 01:13:38 +09:00
.gitignore feat: first commit. Go echo server with PostgreSQL 11.4 docker container 2019-07-18 01:13:38 +09:00
Gopkg.lock feat: first commit. Go echo server with PostgreSQL 11.4 docker container 2019-07-18 01:13:38 +09:00
Gopkg.toml feat: first commit. Go echo server with PostgreSQL 11.4 docker container 2019-07-18 01:13:38 +09:00
Makefile feat: first commit. Go echo server with PostgreSQL 11.4 docker container 2019-07-18 01:13:38 +09:00
README.md feat: first commit. Go echo server with PostgreSQL 11.4 docker container 2019-07-18 01:13:38 +09:00
run.sh feat: first commit. Go echo server with PostgreSQL 11.4 docker container 2019-07-18 01:13:38 +09:00
setup.sh feat: first commit. Go echo server with PostgreSQL 11.4 docker container 2019-07-18 01:13:38 +09:00

Story_ API

PostgreSQL backend and Golang echo server for story_.

Prerequisites

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