- Go v1.18
- MySQL
- Docker & Docker Compose
Run this command line to prepare the environment, it will create .env
file.
echo "export JWT_KEY=typeyourjwtsecrethere" >> .env
the .env
file will looks like this:
export JWT_KEY=typeyourjwtsecrethere
Run this command line to export to your environment :
source .env
Run this command to duplicate config file then you must fill config.json
:
cd etc/cfg
cp config.json.template config.json
Run this command line to create database and redis using docker compose :
docker-compose up -d
Run this command line to install swagger :
make swag-install
Start the application by running:
make run-app
Run this command to run test:
make run-tests