/creativeland-service

https://j-ptiik.ub.ac.id/index.php/j-ptiik/article/view/13504

Primary LanguageGo

Creative Land Services

Prerequsites

  • Go v1.18
  • MySQL
  • Docker & Docker Compose

How to Prepare the Environment

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

How to Run the Application

Start the application by running:

make run-app