- 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 app.env
:
cd etc/cfg
cp .env.example app.env
Run this command line to create database using docker compose :
cd env
docker-compose up -d
Run this command line to install swagger :
make swag-install
Start the application by running:
make run-app