Socket
Socket
Sign inDemoInstall

nsail

Package Overview
Dependencies
1
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    nsail

nodejs developement in docker made easy


Version published
Weekly downloads
3
Maintainers
1
Created
Weekly downloads
 

Readme

Source

nsail

NSail is a light-weight command-line interface for interacting with Nodejs's Docker development environment

laravel sail

This project is port from laravel sail for nodejs ecosystem.

install

npm i -D nsail

a note before call the command

When using npm executable package, you have 2 ways to run it.

  • by npx, so all following command became npx nsail ...
  • by call it directly, in this way you need put $(npm bin) in your PATH environment variable.

usage

nsail install init a docker-compose file on current node project, it will prompt you to choose services from mysql, redis, mongodb, elasticsearch, and so on.

nsail install --with=mongo,redis init a docker-compose file on current node project with selected services

nsail up or nsail up -d start all services.

nsail down stop all services.

nsail npm ... Proxy NPM commands to the "npm" binary on the application container...

nsail yarn ... Proxy YARN commands to the "yarn" binary on the application container...

nsail npx ... Proxy NPX commands to the "npx" binary on the application container...

nsail node ... Proxy Node commands to the "node" binary on the application container...

nsail mysql Initiate a MySQL CLI terminal session within the "mysql" container...

nsail mariadb Initiate a MySQL CLI terminal session within the "mariadb" container...

nsail psql Initiate a PostgreSQL CLI terminal session within the "pgsql" container...

nsail mongo Initiate a MongoDB's Mongo Shell CLI terminal session within the "mongo" container...

nsail redis Initiate a Redis CLI terminal session within the "redis" container...

nsail shell Initiate a Bash shell within the application container...

nsail root-shell Initiate a root user Bash shell within the application container...

nsail share Share the site with a public URL...

support services

  • mysql
  • mariadb
  • postgresql
  • mongodb
  • redis
  • elasticsearch
  • meilisearch
  • mailhog
  • minio
  • selenium

runtimes

  • node: general nodejs runtime
  • nextjs: nextjs runtime

Keywords

FAQs

Last updated on 23 Nov 2021

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc