3.1.3 • Published 5 years ago
@srvr/srvr v3.1.3
A simple, component-based framework for building Node.js API's quickly.
Demo
Example
A route inside of srvr
can be as simple as:
module.exports = {
path: '/', // path to this route
async handler(request, reply) {
// here you have access to fastify's request and reply
// you can use reply.send to respond to the request
// alternatively you may return json from the function
return {
hello: 'world',
};
},
};
Documentation
Complete documentation is coming soon!
Contribute
- Clone the repository
- Install dependencies
npm install
- Link the package and run babel
npm link
npm run dev
- Connect the package to your application (new terminal)
cd ./path/to/your/app
npm link @srvr/srvr
- Start your app's server
npm run dev
3.1.3
5 years ago
3.1.2
5 years ago
3.1.1
5 years ago
3.1.0
5 years ago
3.0.5
6 years ago
3.0.4
6 years ago
3.0.3
6 years ago
3.0.2
6 years ago
3.0.1
6 years ago
3.0.0
6 years ago
2.0.0
6 years ago
1.4.4
6 years ago
1.4.3
6 years ago
1.4.2
6 years ago
1.4.1
6 years ago
1.4.0
6 years ago
1.3.1
6 years ago
1.3.0
6 years ago
1.2.1
6 years ago
1.2.0
6 years ago
1.1.0
6 years ago
1.0.4
6 years ago
1.0.3
6 years ago
1.0.2
6 years ago
1.0.1
6 years ago
1.0.0
6 years ago
0.0.0
6 years ago