events-api

module
v0.0.0-...-a55ffd3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 19, 2019 License: Apache-2.0

README

events-api

  • Start a PostgreSQL server running in a docker container
  • Setup schema
  • Seed database
  • Connect to database from service

Notes:

## Compile api and events-admin
go isntall ./...

## Start postgres:
docker-compose up -d

## Create the schema and insert some seed data.
go build
./events-admin migrate
./events-admin seed

## Run the app then make requests.
./api

Directories

Path Synopsis
cmd
Package cmd contains the executable commands generated for this project.
Package cmd contains the executable commands generated for this project.
api
The api program is a CLI service for managing events.
The api program is a CLI service for managing events.
events-admin
The admin program is a CLI tool for administering the events-api project.
The admin program is a CLI tool for administering the events-api project.
internal
card
Package card implements all business logic regarding cards and related types.
Package card implements all business logic regarding cards and related types.
platform/database
Package database helps with SQL database interactions.
Package database helps with SQL database interactions.
schema
Package schema defines the database schema, migrations, and seed data for persisting records in the project.
Package schema defines the database schema, migrations, and seed data for persisting records in the project.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL