Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.3 KB

useful-commands.md

File metadata and controls

54 lines (40 loc) · 1.3 KB

Turorepo

Official docs

Common commands

Add dependancy to one of the apps

  yarn workspace <workspace> add <package>

Prisma

Create migrations file steps:

  1. Move to the apps/api folder
  2. Run next command
services migrate dev --name migration-name
  1. Apply migrations with command:
services migrate deploy

Update generated prisma client (!need to make every time after schema change to keep it up to date to @prisma/client):

services generate

Git Secret

Official documentation

Use Git Bash to run commands

To add file to get secret:

git-secret add

Encrypt added files:

git-secret hide

Decrypt added files

git-secret reveal

Elasticsearch

Full Elasticsearch documentation see here
Official Node.js client documentation