This is a simple app to implement time.sleep and waitgroup to handle concurency in golang, with back story is Pizza Hub 😄
This section should list any major frameworks that you built your project using. Leave any add-ons/plugins for the acknowledgements section. Here are a few examples.
And supporting tools to easy managing redis caching like :
Before we get started, it's important to know that before you run this code you have to make sure that Redis
is already exist and ready to run on your device. Than this code use a custom command to execute it with makefile to make more simple command like :
- make update
- make tidy
- make start
So, let start it.
- After clone this repository, just run
make update
. - Setup your
.env
file such as database connection and redis connection based on default setting on you device. - To make sure that all dependency is run well, than run
make tidy
. - Finally, you can run your project with command:
make start
. - Go to postman and set url like
http://localhost:8080/
, for information that port to run this project depend on configuratin on.env
And for additional information, i'm alredy setup unit-testing, just run make test-service
.
Here is more information on the process flow and API Contract documentation:
POSTMAN API COLLECTION AND API CONTRACT
Hopefully, it can be easily understood and useful. Thank you~