Back
Here some useful commands learned
| command |
description |
| npm init -y |
init a package.json with basic info |
| npm run |
list scripts runnable |
| command |
description |
| npx knex migrate:latest |
|
| npx knex migrate:rollback |
|
| npx knex migrate:make |
creates a new migration |
| npx knex seed:run |
|
| command |
description |
| docker ps |
|
| docker-compose up |
|
|
|
| command |
description |
| git gui |
|
| git log --oneline |
|
| git rebase -i --root master |
squash first commits done |
| command |
description |
| node -e "console.log(require('crypto').randomBytes(30).toString('hex'))" |
it evaluates the script specified with eval |
|
|
|
|