Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asapp

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asapp

NodeJS mvc framework structure, as simple as possible

  • 1.2.4
  • unpublished
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
92
decreased by-18.58%
Maintainers
1
Weekly downloads
 
Created
Source

ASAPP

As simple as possible project structure

Installation
npm i --save asapp
Functions
  • App
  • Config
  • Schema
  • Route
  • Controller
  • Middleware
  • Helper
  • Library
  • Locale
  • Model

Note: Use lower case to call these functions

App structure
app
├── config
│ ├── routes
│ ├── schemas
│ └── settings
├── controllers
├── helpers
├── libraries
├── locales
├── middlewares
└── models

You can add subdirectories and call modules using the same function as normally: asapp.helpers('payments/visa')

How to use
var express = require('express')
var app = express()

var asapp = require('asapp')

app.locals(asapp.config('locals'))
app.use('/', asapp.route('router'))

module.exports = app

Meanwhile in app...

.
|-- app
|   `-- config
|       |-- routes
|       |   |-- posts.js
|       |   |-- router.js
|       |   `-- users.js
|       `-- settings
|           `-- locals.js


router.js


var express = require('express')
var app = express()
var asapp = require('asapp')

app.use('/users', asapp.route('users'))
app.use('/posts', asapp.route('posts'))

module.exports = app

Bugs

No, and we'll hope not.

Keywords

FAQs

Package last updated on 29 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc