Skip to content

eskermese/crud-app

Repository files navigation

CRUD for Book Management [Backend Application] GO

Build & Run (Locally)

Prerequisites

  • go 1.17
  • postgres & golang-migrate
  • docker & docker-compose
  • golangci-lint (optional, used to run code checks)
  • swag (optional, used to re-generate swagger documentation)

Create .env file in root directory and add following values:

POSTGRES_URI=postgresql://postgres:qwerty123@ninja-db/postgres

JWT_SIGNING_KEY=JUHDSGYUiAUBUGIFHOJPJF*($#O@J(*FU*#!)(J#
PASSWORD_SALT=JUHDSGYUiAUBUGIFHOJPJF*($#O@J(*FU*#!)(J#
SESSION_SECRET=JUHDSGYUiAUBUGIFHOJPJF*($#O@J(*FU*#!)(J#

HTTP_HOST=localhost

APP_ENV=local

Use make run to build&run project, make lint to check code with linter, make migrate to apply the migration scheme.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages