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.
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.
- 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.
- Golang.
- Install Golang from http://www.golang.org
- Setup GOROOT and GOPATH, for example, GOPATH could be set to /golang/ext/
- Git clone the code to /golang/ext/src/github.com/featen/ags
- Modify nginx conf for reflect the source dir above
- 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