feathers-mongoose-casl
Version 2.1.2
Version 2.1.2
  • feathers-mongoose-casl
  • Docs
    • Migrating
    • START A NEW PROJECT
      • Generate a new project.
      • install feathers-mongoose-casl
      • feathers-logger
      • Update config
      • Add mongoose
      • Email service
      • App hooks
      • Import required services
      • Verify user and filter user fields
      • Swagger, Logger, BodyParser
      • Email templates
      • public HTML
      • Run the server
      • Create you first user
      • vs code snippet extension
      • Test Login
      • Dashboard
      • Create a new Service with casl&Dashboard
      • Posts Postman snippet
      • Add Admin role
      • Done!
    • Advanced
      • Security - eslint-plugin-security
      • Security - rate limiting
      • Development tools
    • Guides
      • Throw errors
      • Auth Flow
      • Authentication
      • Authouriztion
      • /me
      • Rules Cache
      • Create a new service
      • Custom service validtor client data
      • validators
        • Example of use
        • Types
        • Mongoose schema
      • Default value
      • $Populate
      • Upload service
      • Upload files
        • Create upload service
        • Sign File After Populate
        • Storage support
          • Google-cloud
      • Error
      • feathers Client examples
      • Dashboard
        • Dashboard Config
          • Field configuration
          • doc Layout
          • custom Fields
            • customElements
        • Online dashboard
        • Add to your react app
      • customized feathers-mongoose-casl/services
      • Redis - in progress
      • S3
      • Postman
      • Swagger
      • debug
    • Production
      • ENV
    • Feathers wiki
      • Good links
    • utils
      • send email example
      • Async For Each
      • Create heroku server
      • pick
      • vs code snippet extension
      • Persist user request
    • Ecosystem
    • TODO
    • Versions updates
Powered by GitBook
On this page
  • 1 - Install @feathersjs/cli
  • 2 - Generate a new project
  • 3 - Update port from env
  • 4 - Git push

Was this helpful?

  1. Docs
  2. START A NEW PROJECT

Generate a new project.

https://docs.feathersjs.com/guides/basics/generator.html

1 - Install @feathersjs/cli

feathers-mongoose-casl >= 2.0.0 support only feathers >= 4.3.3 Before you generate a new app please check that your @feathersjs/cli version >= 4.1.1 To check run:

$ feathers -v

npm install -g @feathersjs/cli

2 - Generate a new project

mkdir my-new-app
cd my-new-app/
feathers generate app
? Do you want to use JavaScript or TypeScript?
    JavaScript
? Project name
    YOUR_PROJECT_NAME
? 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, Realtime via Socket.io
? Which testing framework do you prefer? 
    Mocha + assert
? This app uses authentication 
    Yes
? What authentication strategies do you want to use? (See API docs for all 180+ 
supported oAuth providers) (Press <space> to select, <a> to toggle all, <i> to i
nvert selection)Username + Password (Local)
? What is the name of the user (entity) service?
    users
? What kind of service is it?
    Mongoose
? What is the database connection string?
    YOUR_DB_URL

3 - Update port from env

* needed when deploy to heroku Open src/index.js replace const port = app.get('port'); with const port = process.env.PORT || app.get('port');

4 - Git push

git init
git add .
git commit -m "Create new feathers app"
PreviousSTART A NEW PROJECTNextinstall feathers-mongoose-casl

Last updated 5 years ago

Was this helpful?