echo-sample-arch

module
v0.0.0-...-db83385 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2024 License: MIT

README

echo-sample-arch

Sample of simple web server built using Echo framework.

Goal of This Project

I want to explore the Echo framework, one of the popular Go framework.

In this current state, it only shows the bare minimum usage of Echo as a web server.

Details

If you run it first time, run these make targets in order.

Run the Dependencies

To run the local developemnt environment dependencies, such as PostgreSQL database:

make up
Run the Migration

To run the migration, install Migrate

make migrate-up
Run the Seeder

This is optional, run only when you need sample data to use this API. Warning: don't run this on production DB.

make seed
Run the Project

To run this project, simply run this from the root of the project:

make run
Generate Documentation (Swagger)

To generate the documentation for the API, run this:

make gen-doc

Dependencies

I'm not writing all of these from scratch, big thanks to these great libraries and their contributors.

This project uses Go v1.22.x.

CLI/Executable Dependencies

Dependencies to other projects, can be installed using Brew:

brew install golang-migrate
  • Install httpyac VSCode extension for integrated HTTP call with VSCode. By adding this extension, you can run the ./request/*.http files directly from your browser.
Libraries

Directories

Path Synopsis
cmd
Package docs Code generated by swaggo/swag.
Package docs Code generated by swaggo/swag.

Jump to

Keyboard shortcuts

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