
Security News
High Salaries No Longer Enough to Attract Top Cybersecurity Talent
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
@golemio/cli
Advanced tools
Golemio CLI is a collection of executables intended to be used with Golemio projects and modules
Golemio CLI is a collection of executables intended to be used with Golemio projects and modules
$ cd my-project
# With Yarn
$ yarn add --dev @golemio/cli
# With npm
$ npm install --save-dev @golemio/cli
# Test it out
$ yarn golemio
$ npm exec golemio
# With Yarn
$ yarn global add @golemio/cli
# With npm
$ npm install -g @golemio/cli
# Test it out
$ golemio
Command | Description |
---|---|
golemio | Default command (welcome) |
golemio help | View available commands |
golemio migrate-db help | View available migration commands and flags |
golemio migrate-db create <name> | Create new migration scripts (--postgres or --mongo) |
golemio migrate-db up | Run up migrations (--postgres and/or --mongo) |
golemio migrate-db down | Run down migrations (--postgres and/or --mongo) |
golemio import-db-data help | View available db data import commands and flags |
golemio import-db-data | Import db data (--postgres and/or --mongo) |
Variable | Example | Required |
---|---|---|
POSTGRES_CONN | postgres://oict:oict-pass@localhost/oict-test | :white_check_mark: (mdb and idd postgres) |
MONGO_CONN | mongodb://localhost:27017/oict-test | :white_check_mark: (mdb and idd mongo) |
POSTGRES_MIGRATIONS_DIR | db/migrations/postgresql (default) | :negative_squared_cross_mark: |
SQL_DUMP_FILES | db/example/*.sql | :white_check_mark: (idd postgres) |
MONGO_DATA_PATHS | db/example/**/mongo_data | :white_check_mark: (idd mongo) |
To set up your local development environment, install project dependencies and create .env file in the root of the project (see .env.template for reference)
$ yarn
$ cp .env.template .env
Now you can run the CLI in development mode, just type
$ ./bin/golemio.js
You don't need to compile the source code as the script automatically registers the ts-node loader in development mode
Unit tests are located at test/unit. You can run them by typing
$ yarn test-unit
Integration tests are located at test/integration. You can run them by typing
# Run local services, recommended
$ docker-compose up -d
$ yarn test-integration
FAQs
Collection of executables intended for use with Golemio services and modules
The npm package @golemio/cli receives a total of 322 weekly downloads. As such, @golemio/cli popularity was classified as not popular.
We found that @golemio/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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.
Security News
A survey of 500 cybersecurity pros reveals high pay isn't enough—lack of growth and flexibility is driving attrition and risking organizational security.
Product
Socket, the leader in open source security, is now available on Google Cloud Marketplace for simplified procurement and enhanced protection against supply chain attacks.
Security News
Corepack will be phased out from future Node.js releases following a TSC vote.