- brew install mongodb
- Create go worspace runing
mkdir -p ~/go/src/github.com
- Add to your
.zshrc
or.bash_profile
# Golang
export GOPATH=$HOME/go
export PATH=$PATH:/usr/local/opt/go/libexec/bin
- enter folder
~/go/src/github.com
- clone this repo
git clone https://github.com/ConsumerAffairs/mailer-log.git
- run
go get ../...
- to build:
go build server.go
- to run without build
go run server.go
- to build:
- Enter in
frontend
folder - run
npm install tsd@next -g
- run
npm install gulp -g
- run
npm install typescript -g
- run
npm install
- Just run
gulp
it will monitoring the changes and run typescript and webpack.
#2. API Doc
- Document structure: model.go
- Endpoint list
URL | HTTP Verb | POST Body | URL Params | Result |
---|---|---|---|---|
/mails | GET | empty | page, per_page | mail list |
/mails | POST | JSON string | N/A | create mail |
/mails/:id | GET | empty | N/A | retrieve mail |
/mails/:id | PUT | JSON string | N/A | update mail |
/mails/:id | DELETE | empty | N/A | delete mail |
- Filter
- Tests
- Gulp/webpack production build
- Fix gulp task order issue
- Tests
- Schema validation (do we need ?)