place-api

module
v0.0.0-...-d41ed40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 2, 2023 License: MIT

README

place-api

Requirements
  • Golang version 1.19 or higher
Installation
  1. Clone the repository:
git clone <repository_url>
  1. Install the required dependencies:
make download-deps

This command will install the following dependencies:

  • golangci-lint: Linter for Go programming language.
  • goose: Database migration tool for Go applications.
  • goimports: Tool for organizing imports in Go code.
  • swag: Toolkit for Go Swagger.
Usage

The following commands are available for use:

  • make install-lint: Installs the golangci-lint binary.
  • make download-deps: Downloads project-specific dependencies.
  • make go-generate: Runs go-generate.
  • make swag-v1: Initializes Swagger documentation.
  • make generate: Runs all code generations.
  • make lint: Runs the linter for Go code.
  • make go-fmt: Runs 'go fmt' to format Go code.
  • make new-migration: Creates a new migration file.
  • make up: Runs the application using Docker Compose.
  • make down: Stops the running application using Docker Compose.
  • make build-up: Builds and runs the application using Docker Compose.
  • make test: Runs the tests for the application.

To execute any of the above commands, use the following syntax:

make <command>

For example, to install the golangci-lint binary, run:

make install-lint
Contributing

If you would like to contribute to this project, please fork the repository and create a pull request.

License

This project is licensed under the MIT License.

Directories

Path Synopsis
Package api Code generated by swaggo/swag.
Package api Code generated by swaggo/swag.
cmd
internal
pkg/cerror
Package cerror provides custom errors
Package cerror provides custom errors

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL