claudioonoue / pokego-api

An example API made entirely in Golang using the Echo framework.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

POKEGO-API

Is an example API made entirely in Golang using the Echo framework.

Installation and running

There are 2 ways available to install and run this project: with Golang installed and without Golang installed.

With Golang

With Golang, there are two ways to run the API: simply by compiling with Golang or via the Air package.

Simply compiling natively

Requisites:

Steps:

  1. Clone this repo.
  2. CD at the root of the project.
  3. Run: go mod vendor.
  4. Create a .env file using .env.example as example.
  5. Run: go run main.go.

Using Air package

Requisites:

Steps:

  1. Clone this repo.
  2. CD at the root of the project.
  3. Run: go mod vendor.
  4. Create a .env file using .env.example as example.
  5. Run: air -c .air.toml.

Without Golang

Without Golang, there are one way to run the API: through the docker.

Requisites:

Steps:

  1. Clone this repo.
  2. CD at the root of the project.
  3. Run: docker-compose up.

About

An example API made entirely in Golang using the Echo framework.


Languages

Language:Go 93.1%Language:Shell 6.2%Language:Dockerfile 0.6%