3.1.3 • Published 5 years ago

@srvr/srvr v3.1.3

Weekly downloads
1
License
ISC
Repository
github
Last release
5 years ago

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
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