- entrypoint.js
- Launches the app
$ node entrypoint.js
- Defines port number.
- Launches the app
- server.js
- Calls
http.createServer
- Calls
- database.js
- Defines
clearDB()
,initDB()
,loadFromJsonFile()
- Defines
- requestHandlers.js
- Defines
handles
, a map for routing.
- Defines
- router.js
- Calls
handles[pathname]
- Writes 404 for invalid url.
- Calls
- resource_actions
- RESTapi for each pathname
foo.js
is for path /foo?id=10000
bigfoam / wonton Goto Github PK
View Code? Open in Web Editor NEWThis project forked from huanghuangleoli/wonton