New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodetomic-api-swagger

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodetomic-api-swagger

Simple and fast Restful API designed for horizontal scalability including cluster, based on Swagger, Socket.io, Nodejs, Redis + Passport, MongoDB, Express

  • 2.7.3
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

Nodetomic-api-swagger

NPM version Build Status dependencies Status devDependencies Status Gitter chat GitHub license Downloads

Simple and fast Restful API designed for horizontal scalability including cluster, based on Swagger, Socket.io, Nodejs, Redis + Passport, MongoDB, Express

Horizontal scalability
Preview

Swagger Api

http://localhost:8000/docs

Technologies

Requirements

  • Nodejs >= 6.x.x (Recommended 8.x.x)
  • MongoDB >= 3.x.x
  • Redis >= 3.x.x (Recommended 4.x.x)

Installation

git clone https://github.com/kevoj/nodetomic-api-swagger
cd nodetomic-api-swagger
npm i

Features

  • Tokens
    • JWT merged with REDIS
    • Expiration time
  • Redis
    • Pub/Sub
    • Events: Expired, del, etc
  • Middleware
    • Login validation
    • Role validation
  • Socket.io
    • Support cluster
    • Socket Redis
  • Authentication
    • local
    • facebook
    • twitter
    • google
    • github
    • bitbucket
    • and more...
  • Session
    • Single or Multiple (One or more devices at the same time)
    • Get list of sessions
    • Destroy a session
  • Node
    • Support cluster
    • Support Pm2
  • Swagger
    • Routers by swagger
    • Swagger UI

Development

Start

npm start

Build

npm run build

  • Generate output folder: dist

Imgur

Test

npm test

Lint

npm lint

Preview Production

Run node in a single thread

npm run serve

Imgur

Preview Production [Pm2]

Simple

Run pm2 in a single thread and run the monitor

npm run dev-simple

Imgur

Cluster

Run pm2 in multiple threads and run the monitor

npm run dev-cluster

Imgur

Production

Simple

Run pm2 in a single thread

npm run simple

Imgur

Cluster

Run pm2 in multiple threads

npm run cluster

Imgur

Destroy

PM2

destroy pm2 simple and pm2 cluster

npm stop

Node

destroyed all process for node

killall node

License

MIT © Leonardo Rico

Keywords

FAQs

Package last updated on 30 Jul 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