New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

node-api-server

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-api-server

ES2015+ Node.js API Server

Source
npmnpm
Version
2.2.0
Version published
Weekly downloads
17
54.55%
Maintainers
1
Weekly downloads
 
Created
Source

npm version semantic-release

Build Status JavaScript Style Guide

forthebadge

forthebadge

node-api-server

Usage

npm install node-api-server

require('node-api-server')(({ server, config }, callback) => {
  callback()
})

Create a directory structure like this:

  • api/
    • controllers/
      • myController.js
    • services/
      • utilService.js
    • policies/
      • isLoggedIn.js
    • models/
      • user.js
  • config/
    • connections.js
    • controllers.js
    • globals.js
    • logger.js
    • middleware.js
    • models.js
    • policies.js
    • routes.js
    • server.js
    • services.js
    • session.js
    • socket.js
  • app.js

// @TODO add readme.md for each directory and the optional configs that can be used

// @TODO add example files and example repo to pull and get started with

This module will read all files in the api directories and read them into modules for use. You can set them globally with config files in the config directory.

Keywords

sailsjs

FAQs

Package last updated on 23 Sep 2016

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