Safblog backend service.
- Clone the repository.
git clone https://github.com/safderun/safblog-backend.git && \
cd safblog-backend
- Install
air
tool.
go install github.com/cosmtrek/air@latest
- Run the dependencies from the
docker-compose.yaml
docker compose up -d
- Create a
.env
file.
DB_HOST=127.0.0.1
DB_PORT=5432
DB_USER=postgresuser
DB_PASSWORD=postgrespasswd
DB_NAME=safblog
- Run
air
in the repo
air
docker image build -t safblog-backend:latest .
docker run --name safblog-backend --restart always safblog-backend:latest
You can find the routes under the directory.
@TODO