Skip to content

Latest commit

 

History

History
104 lines (92 loc) · 3.22 KB

FeathersJS.md

File metadata and controls

104 lines (92 loc) · 3.22 KB

FeathersJS

https://feathersjs.com/

Install cli

npm install -g @feathersjs/cli

You should see this kind of output

npm WARN deprecated [email protected]: 🙌  Thanks for using Babel: we recommend using babel-preset-env now: please read babeljs.io/env to update!
npm WARN deprecated [email protected]: Package no longer supported. Contact [email protected] for more info.
/root/.nvm/versions/node/v11.14.0/bin/feathers -> /root/.nvm/versions/node/v11.14.0/lib/node_modules/@feathersjs/cli/bin/feathers.js
+ @feathersjs/[email protected]
added 566 packages from 274 contributors in 59.454s

Create an app

Issue the following commands:

 mkdir my-app
 cd my-app
 feathers generate app

Answer all the questions with default values (accept the suggestions) You should see something like this

? Project name my-app
? Description
? What folder should the source files live in? src
? Which package manager are you using (has to be installed globally)? npm
? What type of API are you making? (Press <space> to select, <a> to toggle all, <i> to invert selection)REST, Real
time via Socket.io
? Which testing framework do you prefer? Mocha + assert
  create package.json
  create config/default.json
  create LICENSE
  create public/favicon.ico
  create public/index.html
  create .editorconfig
  create src/app.hooks.js
  create src/channels.js
  create src/index.js
  create src/logger.js
  create src/hooks/log.js
  create src/middleware/index.js
  create src/services/index.js
  create .gitignore
  create README.md
  create src/app.js
  create test/app.test.js
  create .eslintrc.json
  create config/production.json
No locked version found for winston@^3.0.0, installing latest.
No locked version found for nodemon@^1.18.7, installing latest.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.

+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ @feathersjs/[email protected]
+ @feathersjs/[email protected]
+ @feathersjs/[email protected]
+ @feathersjs/[email protected]
+ @feathersjs/[email protected]
+ @feathersjs/[email protected]
added 170 packages from 103 contributors and audited 320 packages in 18.703s
found 0 vulnerabilities


> [email protected] postinstall /root/my-app/node_modules/nodemon
> node bin/postinstall || exit 0

Love nodemon? You can now support the project via the open collective:
> https://opencollective.com/nodemon/donate

npm WARN [email protected] No repository field.
npm WARN [email protected] No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
added 351 packages from 650 contributors and audited 2842 packages in 38.369s
found 0 vulnerabilities

Running your brand new app

npm start

> [email protected] start /root/my-app
> node src/

info: Feathers application started on http://localhost:3030

Now test your app opening the browser at http://localhost:3030