This is a golang practice project for go beginner.
This project is heavily inspired by the practialnode, but is wrote by go with Martini framework.
这是一个go网络编程的入门工程,网站内容参考practialnode,基于Martini框架进行开发。
Default Project requires Go, MongoDB and few other tools installed.
为了能实时的使用gofmt自动格式化代码,需要对IDEA进行一些配置。
lesson1
分支:搭建最简单的HTTP服务器- Hello World!
lesson2
分支:使用godep管理Martini依赖包,使用Martini框架搭建HTTP服务器- Hello World!
lesson3
分支:使用React+Redux构建Web页面- 使用webpack构建
- Redux
lesson4
分支:使用antd组件库- todo
- Rest API开发
- 使用MongoDB进行数据存储
- 上线部署
Server编译
godep go build
Server开发模式运行
./practicalGo -war web
Web页面
cd web
yarn install
npm start
在浏览器地址栏输入http://localhost:8091查看页面
Let's go!