➜ todos git:(master) tree
.
├── Gemfile
├── Gemfile.lock
├── README.md
├── TODO
├── conf
│ ├── database.yml
│ └── moko.conf.json
├── css
│ └── style.css
├── index.html
├── karma.conf.js
├── moko.up
├── package.json
├── resources
│ └── todos.json
├── run.sh
├── scripts
│ ├── app.js
│ ├── jquery-todoify.js
│ └── lib
│ ├── jasmine-jquery.js
│ ├── jquery-1.10.2.js
│ └── underscore-1.5.1.min.js
├── spec
│ ├── fixtures
│ │ └── templ.html
│ ├── helper
│ │ └── helper.js
│ └── views
│ ├── todo-with-fixutre-spec.js
│ └── todo-with-server-spec.js
└── test.html
Last active
August 29, 2015 13:56
-
-
Save abruzzi/9172100 to your computer and use it in GitHub Desktop.
Project using moko and nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"mount": { | |
"dir": "./", | |
"uri": "/" | |
} | |
}, | |
{ | |
"request": { | |
"method": "post", | |
"uri": "/action.do", | |
"json_paths": { | |
"$.type": "events" | |
} | |
}, | |
"response": { | |
"status": 200, | |
"file": "spec/fixtures/events.json" | |
} | |
}, | |
{ | |
"request": { | |
"method": "post", | |
"uri": "/action.do", | |
"json_paths": { | |
"$.type": "contacts" | |
} | |
}, | |
"response": { | |
"status": 200, | |
"file": "spec/fixtures/contacts.json" | |
} | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
upstream moco_server { | |
server localhost:12306; | |
} | |
server { | |
listen 9999; | |
server_name _; | |
location / { | |
proxy_pass http://moco_server; | |
index index.html; | |
} | |
location ~ ^/(scripts/|css/|style/) { | |
root "/Users/twer/develop/design/todos/"; | |
} | |
location = /index.html { | |
root "/Users/twer/develop/design/todos"; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment