https://github.com/zackify/miniservice
Build a simple node api (built for fun)
https://github.com/zackify/miniservice
Last synced: 9 months ago
JSON representation
Build a simple node api (built for fun)
- Host: GitHub
- URL: https://github.com/zackify/miniservice
- Owner: zackify
- Created: 2015-05-07T02:43:49.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-09-06T07:18:58.000Z (over 10 years ago)
- Last Synced: 2025-03-17T13:40:19.990Z (12 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.5 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
##MiniService
Just a little project i made to help myself understand how express / Koa works.
### Installing MiniService
npm install miniservice
###Creating your app
var MiniService = require('MiniService');
var App = new MiniService();
Making a route is super easy:
App.route('test',function(params){
console.log(params.get,params.post)
return {user: 'test', email: 'wow'}
})
`params` is an object that contains get and post varaibles.
###Serve your app
App.serve(1337)