- Check main repo for details about the project.
git clone https://github.com/ushiradineth/cron-be
- Check the
.env.example
file for the required environment variables. - Use
cp .env.example .env
to create the.env
file.
- Run
docker-compose -f docker-compose.yml up -d
to start the Postgres Database and Adminer. - Wait for a moment for the database to initialize.
- You can use Adminer, a web-based administration tool included in the setup, to manage your database. Access Adminer at localhost:9090.
- In Adminer, use the following credentials:
- Server: postgres:5432
- Username: cron
- Password: password
- Database: cron
- Run
make db_up
to run the latest Database Migration.
- Run
go run .
to start the Cron Go HTTP Server.
- Check the
.env.example
file for the required environment variables. - Use
cp .env.example .env.production
to create the.env.production
file.
- Run
docker build -t cron-be:prod -f Dockerfile .
to build the image.
- Uncomment the
cron-be
service indocker-compose.yml
. - Run
docker-compose -f docker-compose.yml up -d
to start the Postgres Database, Adminer, and the Cron Go HTTP Server.