Skip to content

alochym01/echo-blueprint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

Using simple echo framework

  • structure folders
    echo-framework
        ├── bin
        ├── pkg
        ├── README.md
        └── src
            ├── config
            │   ├── config.go
            │   └── config.json
            ├── controllers
            │   └── user
            │       └── user.go
            ├── helpers
            │   ├── db.go
            │   └── user.go
            ├── models
            │   └── users.go
            ├── routes.json
            └── server.go
    
    • config - for storing configuration application
      • config.json
        {
            "DbHost": "localhost",
            "DbPort": 3306,
            "DbType": "mysql",
            "DbName": "test",
            "DbUsername": "test",
            "DbPassword": "test"
        }
        
        
    • helper - for helping utils library
      • DbGorm - global database connection and using for all modules
    • models - define models for application
      • users.go - user model
    • controllers - folder for storing all logical controllers
      • users - folder to store all user logical function
        • user.go - executing all user's requests from clients
    • server.go - entry point for starting echo framework
      • DbGorm.SetLogger
      • http.StatusOK - this is standard library from golang

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages