Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
web
 
 
 
 
 
 
 
 

README.MD

Quick Start

Start Postgres

  • Start a postgres docker instance
docker run -d \
 -e POSTGRES_PASSWORD=password \
 -e POSTGRES_USER=admin \
 -e POSTGRES_DB=lynx \
    postgres

Setup Environment Variables

  • LYNX can be configured via environment variables
export LYNX_DB_DIALECT=postgres
export LYNX_DB_HOST=172.17.0.1
export LYNX_DB_DATABASE=lynx
export LYNX_DB_USER=admin
export LYNX_DB_PASSWORD=password
export LYNX_DB_DIALECT=mssql
export LYNX_DB_HOST=127.0.0.1
export LYNX_DB_DATABASE=lynx
export LYNX_DB_USER=admin
export LYNX_DB_PASSWORD=password

Execute LYNX

lynx --stderrthreshold=INFO

Test

http GET :8080/api/users
http POST :8080/api/users firstname=peter lastname=kneale
http GET :8080/api/users
http GET :8080/api/users/1

Unit Tests

 go test -v  . -args -stderrthreshold=INFO

About

Sample Code: Web + API built with golang + gorm + reactjs

Topics

Resources

Releases

No releases published
You can’t perform that action at this time.