Giter Club home page Giter Club logo

nappjs

NodeJS application stack

Build Status

Structure

  • schema - folder containing schema versions (if you have )
  • plugins (optional) - connect middlewares that are included into rest api
  • middlewares (optional) - similar as plugins, but for project specific logic
  • seeds (optional) - seed data in folder structure

Plugins

Plugins can also be load from local and global node_modules. Each module must have prefix nappjs- to be loaded. Loading global modules is disabled by default, but you can enable it by setting environment variable: LOAD_GLOBAL_PLUGINS=true

There are public plugins you can use right away:

  • nappjs-api - plugin exposing http interface (expressjs)
  • nappjs-graphql - plugin exposing http interface with GraphQL interface
  • nappjs-core-data - js-core-data wrapper which can be used to add ORM in your app
  • nappjs-core-data-graphql - autogenerated GraphQL api from js-core-data schema

So for example if you need to create backend app with GraphQL api, simply run:

npm install --save nappjs nappjs-core-data-graphql

Then you can continue with implementation according to each plugin specifications.

Installation

This stack aims mainly to containerized deployment, but for local development you can install cli:

npm install --save nappjs

Usage

When you have all you plugins installed (see previous section), you can use following scripts in package.json (and call them with npm run ...):

{
    "start": "nappjs start",
    "run-blah": "nappjs run blah", // runs script named `blah`
    "start-blah-cron": "nappjs cron '*/5 0 0 0 0 0' blah", // start repeating `blah` script each 5 seconds
}

Example

You can see full feature example at nappjs accounts service (OAuth2 compliant backend service).

nappjs's Projects

nappjs doesnโ€™t have any public repositories yet.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.