FeathersJS is very popular web framework for node.js.
Moesif is an API analytics platform. moesif-express is a middleware that makes integration with Moesif easy for Express or even Node based web apps.
This example is an featherjs application with Moesif's API analytics and monitoring integrated.
- Install all dependencies:
npm install
- Add your Moesif Application Id to the
app.js
Your Moesif Application Id can be found in the Moesif Portal. After signing up for a Moesif account, your Moesif Application Id will be displayed during the onboarding steps.
You can always find your Moesif Application Id at any time by logging into the Moesif Portal, click on the top right menu, and then clicking Installation.
var moesifOptions = {
applicationId: 'Your Moesif Application Id',
}
- Run the example, it will listen on port 3030.
node app.js
- Send some requests to some of the routes and verify that the API calls are captured in your Moesif account.
curl http://localhost:3030