Skip to content
/ go-api Public template

Go boilerplate can streamline the process of starting new projects by providing a predefined structure and foundational code to build upon

Notifications You must be signed in to change notification settings

dwarvesf/go-api

Repository files navigation

Project Name

Short description of your project.

Table of Contents

About

Briefly describe your project, its purpose, and its main features.

Getting Started

Prerequisites

  • Go (add specific version)
  • Docker (add specific version)
  • ...

Installation

  1. Clone the repository:

    git clone git@github.com:dwarvesf/go-api.git new-project
    cd new-project
  2. Install project dependencies:

    make setup

Usage

Running the Development Server

Start the development server:

make dev

Generating Swagger Documentation

Generate Swagger documentation:

make gen-swagger

Generating Mock Interfaces

Generate mock interfaces:

make gen-mocks

Running Tests

Run tests with the testing database:

make test

Database

Starting the Development Database

Start the development database container:

make pg-start-dev

Starting the Testing Database

Start the testing database container:

make pg-start-test

Migrations

Apply pending migrations:

make pg-migrate-up

Rollback the last migration:

make pg-migrate-down

Contributing

Contributions are welcome! Please read CONTRIBUTING.md for details on how to contribute to this project.

License

This project is licensed under the License Name.

About

Go boilerplate can streamline the process of starting new projects by providing a predefined structure and foundational code to build upon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •