Skip to content

Latest commit

 

History

History
64 lines (53 loc) · 1.16 KB

README.md

File metadata and controls

64 lines (53 loc) · 1.16 KB

MediaVault

MediaVault an efficient file sharing application

Prerequisites to run locally

Node.js\n Postgresql\n copy env from .env.example

Setup

npm install

Migrations:

  1. Run migration Command:

    npm run up 
    npm run down
  2. Create a New Model Command:

     npm run create-model --name=<model_name> --columns="<column1:type,column2:type,...>"

    Example:

    npm run create-model --name=User --columns="firstName:string,lastName:string,email:string"
  3. Alter a Column Command:

    npm run alter-column --table=<table_name> --column=<column_name> --new-type=<new_data_type>

    Example:

    npm run alter-column --table=Users --column=age --new-type=integer
  4. Delete a Column Command:

    npm run delete-column --table=<table_name> --column=<column_name>

    Example:

    npm run delete-column --table=Users --column=middleName
  5. Run a Specific Seed File Command:

    npm run seed-specific -- <seed-file-name>

    Example:

    npm run seed-specific -- 20231027000000-demo-user.js