Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/abhishekkhot/media-vault

File sharing application
https://github.com/abhishekkhot/media-vault

Last synced: 22 days ago
JSON representation

File sharing application

Awesome Lists containing this project

README

        

# 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:
```bash
npm run up
```
```bash
npm run down
```

2. Create a New Model
Command:
```bash
npm run create-model --name= --columns=""
```
Example:
```bash
npm run create-model --name=User --columns="firstName:string,lastName:string,email:string"
```

3. Alter a Column
Command:
```bash
npm run alter-column --table= --column= --new-type=
```
Example:
```bash
npm run alter-column --table=Users --column=age --new-type=integer
```

4. Delete a Column
Command:
```bash
npm run delete-column --table= --column=
```
Example:
```bash
npm run delete-column --table=Users --column=middleName
```

5. Run a Specific Seed File
Command:
```bash
npm run seed-specific --
```
Example:
```bash
npm run seed-specific -- 20231027000000-demo-user.js
```