Table of Contents
List of technologies / frameworks used during the project.
To get a local copy up and running follow these simple example steps.
If you run project directly with docker-compose skip these steps
- Golang compiler under version 1.18 should work.
- Redis 3.16
- Mongo 5.0.8
- Docker
- Docker-compose
Also you need to create .env at the root folder project :
PWD_REDIS=password_redis
ID_MONGO=api_user
PWD_MONGO=password_mongo
DB_MONGO=api_prod_db
ROOT_MONGO=root
ROOT_PWD_MONGO=password
To build api :
$bash : chmod +x build.sh
$bash : ./build.sh #That script will create dist folder
To run api
$bash : ./dist/api-golang port
To check request
$bash : curl http://locahost:port/redis
$bash : curl http://locahost:port/notredis
Run with docker-compose
$bash : docker-compose up --build -d
$bash : docker ps container # Check containers running
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License. See LICENSE.txt
for more information.
Reach me at : [email protected].
Project Link: https://github.com/Michelprogram/blind-test.git
This space is a list to resources i found helpful and would like to give credit to.