Skip to content
A simple, component-based framework for building Node.js API's quickly.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
examples/hello-world
public/images
src
.eslintrc.js
.gitignore set up deploy to github pages Nov 1, 2018
.travis.yml
README.md
index.js
package-lock.json
package.json
tsconfig.json

README.md

srvr

Build Status Version License

A simple, component-based framework for building Node.js API's quickly.

Demo

srvr 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

  1. Clone the repository
  2. Install dependencies
npm install
  1. Link the package and run babel
npm link
npm run dev
  1. Connect the package to your application (new terminal)
cd ./path/to/your/app
npm link @srvr/srvr
  1. Start your app's server
npm run dev
You can’t perform that action at this time.