This project is the backend for the Dino Diary App.
- Install Golang;
- Install Make;
- Install Go Migrate Package;
- Rename the
.env.example
file to.env
;
You also need to have Docker installed to run the development database.
# Using Make:
make install
# OR without Make:
go mod tidy
-
Execute postgreSQL database container:
Start the container:
docker compose up -d
Run migrations:
make migrate_up
-
Start the server:
# Using Make: make run # OR without Make: go run ./cmd/server/...
The server should start at port 3000.