A demonstration project about FeathersJS
This project uses Feathers. An open source web framework for building modern real-time applications.
npm install @feathersjs/cli -g
feathers --version
feathers generate app
Take a look at
package.json
config/default.json
config/production.json
public/index.html
src/index.js
src/app.js
src/app.hooks.js
feathers generate service
Take a look at
package.json
: Some dependencies has been addedconfig/default.json
,src/mongodb.js
andsrc/app.js
: DB references appearsrc/services/index.js
andsrc/services/hospitals
: The service has been added
You can use the PostmanCollection.js
in order to test the service
feathers generate hook
Take a look at
src/services/hospitals/hospitals.hooks.js
src/hooks/add-timestamp.js
Getting up and running is as easy as 1, 2, 3.
-
Install your dependencies
cd path/to/feathersdemo; npm install
-
Start your app
npm start
Simply run npm test
and all your tests in the test/
directory will be run.
Feathers has a powerful command line interface. Here are a few things it can do:
$ npm install -g @feathersjs/cli # Install Feathers CLI
$ feathers generate service # Generate a new Service
$ feathers generate hook # Generate a new Hook
$ feathers help # Show all commands
For more information on all the things you can do with Feathers visit docs.feathersjs.com.
0.1.0
- Initial release
Copyright (c) 2018
Licensed under the MIT license.