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

@kearisp/workspace

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kearisp/workspace

Docker workspace for web projects

  • 1.0.0
  • unpublished
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
Β 
Created
Source

Workspace

Docker workspace for web projects

Requirements

  • node.js
  • docker

Usage

Installation

npm i -g @kearisp/workspace

Project initialization

127.0.0.1 <domain>
cd /project-dir
ws init
ws domain:add <domain>

Starting project container

ws start -d

Options:

  • --detach, -d -

Proxy

ws proxy:start
Logs
ws proxy:logs

Mariadb

Installation

To access the following services within the workspace, please add the following entries to your hosts file:

127.0.0.1 maildev.workspace
127.0.0.1 dbadmin-mariadb.workspace
Start Mariadb
ws maridb:start

Backup db

The mariadb:backup command is used to create a backup of a MariaDB database.

ws mariadb:backup [database]
Backup Location

The backup file will be saved in the following directory:

$WS_DIR/plugins/mariadb/dump/[dbname]/yyyy-MM-dd HH-mm.sql

Delete backup

The mariadb:delete-backup command will remove file from $WS_DIR directory.

ws mariadb:delete-backup [database] [filename]

Dump

The mariadb:dump command is used to dump a MariaDB database to a file.

ws mairadb:dump [database] > dump.sql

Technologies

Environments

You can add WS_DIR into .bashrc for changing ws data path.

export WS_DIR="$HOME/.workspace"

Completion

source <(ws completion script)

Folders structure

β”œβ”€β”€ bin/
β”œβ”€β”€ plugins/
β”‚   β”œβ”€β”€ localtunnel/
β”‚   β”œβ”€β”€ maildev/
β”‚   β”œβ”€β”€ mariadb/
β”‚   └── ngrok/
β”œβ”€β”€ presets/
β”‚   β”œβ”€β”€ apache/
β”‚   β”œβ”€β”€ go/
β”‚   β”œβ”€β”€ node/
β”‚   └── shopify/
β”œβ”€β”€ plugins/
└── src/
    β”œβ”€β”€ makes/
    β”‚   └── index.ts
    β”œβ”€β”€ models/
    β”‚   └── index.ts
    β”œβ”€β”€ types/
    β”‚   └── index.ts
    β”œβ”€β”€ utils/
    β”‚   └── index.ts
    β”œβ”€β”€ App.ts
    β”œβ”€β”€ env.ts
    └── index.ts 

FAQs

Package last updated on 11 Sep 2023

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