This is a Simple Http Server
Environment
- Ubuntu 16.04
- Golang 1.11
- MySQL driver
"github.com/go-sql-driver/mysql"
- Gorilla Mux
"github.com/gorilla/mux"
Step
- Clone down this repo, then go into direcotry
/server/
- run
go run httpServer.go
File Structure
|--conf //save os,filepath,host address configuration
|--dao //save mysql DAO
|--data //save basic data structure
|--server //main.go
|--static
|-- img
|-- view //save templates
|--test //test
|--util // common constant like errorcode and so on
authenticationTable.sql, simpleUserTable.sql, userTable.sql contain creating test Table and inserting test data
API Doc
See the Requirements