Just a REST API written in Golang for practice. Modeled heavily on gorsk.
This REST API is intended to be deployed to AWS as the user facing component of a larger group of microservices.
For READ operations, the API reads directly from a database. For WRITE operations, the API does simple validation before formatting and passing the data along to an AWS Kinesis stream. The stream is the trigger for the lambda component
The following are environment variables necessary to run the API
Application:
API_PORT
API_LOG_LEVEL
API_TIMEOUT
Database:
DB_USER
DB_PASS
DB_NAME
DB_PORT
DB_ADDR
AWS:
AWS_REGION
KINESIS_STREAM_NAME
KINESIS_PARTITION_KEY
Set the listed environment variables and run
make
To run all unit tests run
make test
To rebuild mocks run
make mock