- 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" }
- config.json
- 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
- users - folder to store all user logical function
- server.go - entry point for starting echo framework
- DbGorm.SetLogger
- Can use with https://github.com/uber-go/zap to write to log file
- log.New(os.Stdout, "\r\n", 0) for terminal
- http.StatusOK - this is standard library from golang
- DbGorm.SetLogger
- config - for storing configuration application
-
Notifications
You must be signed in to change notification settings - Fork 0
alochym01/echo-blueprint
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published