Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Echo template for Create Go App CLI

Echo is a high performance, minimalist Go web framework.

⚡️ Quick start

  1. Create a new project with Echo:
cgapp create

# Choose a backend framework:
# > echo
#  fiber
#  net/http

Development

Prerequisites:

Run tests

    make test

Run static code analysis

    make lint

Run code coverage

    make coverage

Run the server

    ## with Go
    make local
    ## with Docker
    make docker.run
  1. Go to API Docs page (Swagger): 127.0.0.1:5000/swagger/index.html

Screenshot

🗄 Template structure

./cmd

├── cmd
│     └── template
│             └── main.go
│...

Folder with business logic only. This directory doesn't care about what database driver you're using or which caching solution your choose or any third-party things.

  • ./app/controllers folder for functional controllers (used in routes)
  • ./app/models folder for describe business models and methods of your project
  • ./app/queries folder for describe queries for models of your project

./docs

Folder with API Documentation. This directory contains config files for auto-generated API Docs by Swagger.

./internal

├── internal
│   ├── api
│   │   ├── models
│   ├── cache
│   ├── datastore
│   ├── middleware
│   ├── migrations
│   ├── redis
│   └── token

⚠️ License

Apache 2.0 © Vic Shóstak & True web artisans.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages