Web Framework Gin Use

Source: Internet
Author: User
# # # Introduced to simplify the use of the process, reduce development time, reduce project development costs, set up a "Gin" web skeleton. Components include, but are not limited to, routing, controllers, ORM, session, cookies, MySQL connections, certified middleware, and so on. Project Address: https://github.com/chenhg5/morningo### The usage guide provides a command-line tool, Morningo-installer. Can be downloaded directly: "' wget Https://gitee.com/cg33/morningo-installer/raw/master/morningo-installer # macwget https://gitee.com /cg33/morningo-installer/raw/master/morningo-installer-linus # Linuswget https://gitee.com/cg33/ Morningo-installer/raw/master/morningo-installer.exe # windows ' can also ' go get '. After downloading, the use is very simple, as follows: "./morningo-installer--project-name Web" can initialize a Morningo project, the project name is called "Web" after downloading, there is the following directory: ". ├── Makefile├──readme.md├──command│  └──sword.go├──config Global configuration │  └──env.go├──connections Storage connection │&N bsp; ├──database│  │  ├──mongodb│  │  └──mysql│  └── Redis│  └──redis.go├──controllers Controller │  └──maincontroller.go├──filters Middleware │  ├── AUTH Certified Middleware │  │├──drivers certification engine │ &nbsP │└──auth.go│  └──filter.go├──frontend front-end resource │&NBSP;&NBSP;├──ASSETS│&NBSP;&NBSP;│&NBSP;&NBSP;├──CSS│&NB sp; │  ├──images│  │  └──js│  ├──dist│  └──templates│& Nbsp; └──index.tpl├──handle.go Global error handling ├──main.go├──models Model │  └──user.go├──module Project module │ &nbsp ; │──schedule│  │└──schedule.go│  │──logger│  │└──logger.go│  └──server │  └──server.go timed Task Module ├──routers routing │  └──api_routers.go├──routers.go routing initialization settings ├──routers_test.g o API Test ├──storage│  ├──cache cache file │  └──logs Project log │  ├──access.log│  └──e Rror.log└──vendor Govendor Third party Package ' project is currently using ' ' Govendor ' to manage dependencies and may be adjusted later depending on ' go1.11 ' version. After downloading, you need to load the dependencies and execute the following command: ' Make Deps ' and then direct ' make ' to run. Perform ' make restart ' to smooth restart. Execute "make test" to run unit tests. Examples of database queries, page rendering, session and cookie, middleware and ORM can be seen in the controller ' Maincontroller.go ', textExamples are available in each of these pieces. More features Please look forward to, also welcome PR, if you have help, thank <a class= "Github-button" href= "Https://github.com/chenhg5/morningo" data-icon= " Octicon-star "Aria-label=" star Chenhg5/morningo on GitHub >Star</a> ^-^ Welcome to Go Project Development learning organization, QQ Group: 756664859431 Second Click  
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.