Files
latosa-escrima/backend
cdricms 667cbcc6b1 Creating new admin user from CLI
go run ./cmd/migrate new admin
2025-02-26 12:51:29 +01:00
..
2025-02-25 17:49:37 +01:00
2025-02-26 12:51:29 +01:00
2025-02-11 11:22:43 +01:00
2025-02-11 10:12:37 +01:00
2025-02-11 10:01:36 +00:00
2025-02-21 16:16:24 +01:00
2025-02-21 16:16:24 +01:00
2025-02-21 16:16:24 +01:00
2025-01-28 17:43:40 +01:00

Prerequisites for development

  • Installing dependencies: go mod tidy
  • Verifying that the .env file is present and well configured.

Running migrations

A migration cli is made available through the package: ./cmd/migrate At first it is needed to run: go run ./cmd/migrate db init to initialize the tables needed by golang's bun.

Then, if there are migrations needed to be applied, run: go run ./cmd/migrate db migrate

Everything should be taken care of.

Running the server

The server can be ran as easily as: go run .