Skip to content
/ go4web Public

A web framework based on Go language using Gorilla Secure Cookie, Gorilla Mux, Gorilla Websocket and mongoDB

Notifications You must be signed in to change notification settings

Luc-cpl/go4web

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 

Repository files navigation

Go4Web is a full MVC framework designed in GO.

Is just a simple start point to build web applications.


To use Go4Web framework, is necessary de follow packages:

  • github.com/gorilla/securecookie
      $ go get github.com/gorilla/securecookie
  • github.com/gorilla/mux
      $ go get github.com/gorilla/mux

To build a new project, just go to Go4Web folder and run the installer.

    $ cd GOPATH/src/github.com/Luc-cpl/Go4Web
    $ go run Go4Web.go

After start the installer, create your project, inserting the name and folder, after that, confirm the application path.

    $ Exemple-folder/Project
    $ yes

In this case, the installer will create the project in GOPATH/src/Exemple-folder/Project.


To run your application, go to your new application folder and run de main.go to start the server (is necessary restart the server every time that a .go file in the application is changed).

    $ cd GOPATH/src/Exemple-folder/Project
    $ go run main.go

To connect your MySQL database, just open the main.go and change "root:@/db_teste" to your MySQL access and database according to go-sql-driver package.

About

A web framework based on Go language using Gorilla Secure Cookie, Gorilla Mux, Gorilla Websocket and mongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published