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.
Download tar.gz file and untar it to /golang/go. in your ~/.bashrc
export GOROOT=/golang/go
export GOPATH=/golang/ext/
export PATH=$GOROOT/bin:$GOPATH/bin:$PATH - go get github.com/featen/ags
- Modify nginx conf for reflect the source dir above and run nginx.
- Modify your site config at data/ags.config.
- go run app.go