Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
@dollarshaveclub/nodejs-server
Advanced tools
[![CircleCI](https://circleci.com/gh/dollarshaveclub/nodejs-server/tree/master.svg?style=svg&circle-token=850fd443c919134e53254d3ab098b02f085722fe)](https://circleci.com/gh/dollarshaveclub/nodejs-server/tree/master) [![codecov](https://codecov.io/gh/dolla
Readme
This is the main server to be used in all of Dollar Shave Club's node.js applications.
GET /ping
NODE_ENV=development
PORT
or LISTEN_PORT
SOCKET_TIMEOUT_SECONDS=120
GRACEFUL_SHUTDOWN_TIMEOUT_SECONDS=15
ROLLBAR_POST_SERVER_ITEM_ACCESS_TOKEN
- access token for server-side rollbarOptions:
name
- name of the repoport
socketTimeout
gracefulShutdownTimeout
rollbarPostServerItemAccessToken
For development only:
proxy = false
- whether to proxy requestsproxyHostname = process.env.PROXY_HOSTNAME || release.dollarshaveclub.com
- what server to proxyproxyMatch = /^\/(api|cms|face-assets)\//
- regex to match paths to proxyTo support proxying locally and internationally, add the following to your /etc/hosts
:
::1 localhost # should have already been added
::1 localhost.au
::1 localhost.ca
::1 localhost.uk
const serve = require('@dollarshaveclub/nodejs-server')
const app = require('express')()
// app logic
serve(app, {
name: 'my-app',
}).then(({ port }) => {
console.log(port)
})
const serve = require('@dollarshaveclub/nodejs-server')
const Koa = require('koa')
const app = new Koa()
// app logic
serve(app, {
name: 'my-app'
})
import serve from "@dollarshaveclub/nodejs-server"
await serve(new Koa(), {name: "my-app"})
FAQs
[![CircleCI](https://circleci.com/gh/dollarshaveclub/nodejs-server/tree/master.svg?style=svg&circle-token=850fd443c919134e53254d3ab098b02f085722fe)](https://circleci.com/gh/dollarshaveclub/nodejs-server/tree/master) [![codecov](https://codecov.io/gh/dolla
The npm package @dollarshaveclub/nodejs-server receives a total of 2 weekly downloads. As such, @dollarshaveclub/nodejs-server popularity was classified as not popular.
We found that @dollarshaveclub/nodejs-server demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 27 open source maintainers collaborating on the project.
Did you know?
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.