Skip to content

henrydo/ags

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AGS - AngularJS + Golang + Sqlite

Intro

This project intended to build a brand new shopping cart web application base on the latest AngularJS and Google Golang, both of them are very new and interesting to me.

After spent months of my spare time on designing and coding, I actually made a very simple yet functional prototype, include user, product, order, report modules, and a blogging module. Enquire module enables user to send messages to the owner to enquire business solution.

I hope to grow this project to a fully functional shopping cart application, forks and patches are welcome.

Design - keep it simple

AngularJS is responsible for layout, sending restful request to server, and presenting data retrieved from server. (ags/webapp)

While Golang modules are responsible for providing restful api to angularjs webapp. (ags/service)

Using Sqlite for database mainly because it's simplicity, and should be more enough for me.

Install

  1. Nginx. Nginx is used for providing static resources, while restful requests were forwarded to 8080 port. Check out the conf file for nginx at data/nginx.conf.
  2. Golang.
  3. Install Golang from http://www.golang.org
  4. Setup GOROOT and GOPATH, for example, GOPATH could be set to /golang/ext/
  5. Git clone the code to /golang/ext/src/github.com/featen/ags
  6. Modify nginx conf for reflect the source dir above
  7. Get golang modules go get github.com/featen/utils/log go get github.com/emicklei/go-restful go get github.com/mattn/go-sqlite3
    go get github.com/gorilla/sessions

About

AngularJS + Golang + Sqlite

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published