Skip to content

The server component for Project Anda, provides the API to access and manage the database and event store

License

Notifications You must be signed in to change notification settings

aewens/anda-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

anda-server

Prerequisites

Required:

  • Go v1.14+
  • PostgreSQL v12.1+

Optional:

  • golangci-lint v1.30.0

These are the versions I am using, so earlier versions may be fine.

Install

Get source code

Using go get:

$ go get -u github.com/aewens/anda-server
$ cd $GOPATH/src/github.com/aewens/anda-server

Manually by hand:

$ cd $GOPATH/src
$ mkdir -p github.com/aewens
$ cd github.com/aewens
$ git clone github.com/aewens/anda-server
$ cd anda-server

Configure

Fill out the file with database connection info for PostgreSQL.

$ cp etc/config.orig.json etc/config.json
$ vim etc/config.json # Fill out database credentials

Setup

Using build and run scripts:

$ scripts/00_build_and_run.sh

Manually by hand:

$ go build -o bin/anda.o && bin/anda.o -config etc/config.json

The build and run script adds a few niceties like removing the previous instance and logging to a file, but is not required.

About

The server component for Project Anda, provides the API to access and manage the database and event store

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published