ENV VAR | Default VALUE | Description |
---|---|---|
SAMWISE_ENV |
local |
environment |
SAMWISE_HTTP_PORT |
80808 |
http server listen port |
SAMWISE_TIMEOUT |
5s |
http server timeout |
SAMWISE_DB_CONNECTION |
redis-server:6379 |
Redis connection string. Uses Docker default image by default |
- Clone the repo
git clone [email protected]:krystalmejia24/samwise.git
-
Export all the proper environment variables as described
-
Build and Run the service
To run w/ Docker. You can update the ports here:
make build_docker
make run_docker
To run the service locally, you will first need to set up a local instance of redis and export the proper enviornment variable for the DB connection. Once redis is setup, you can simply build and run the service with:
make build
make run
tests only:
make test
coverage only:
make cover
tests & coverage:
make test_cover
benchmarks:
make bench