Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/abhishekkhot/media-vault
- Owner: AbhishekKhot
- Created: 2024-10-27T02:54:51.000Z (2 months ago)
- Default Branch: master
- Last Pushed: 2024-11-16T10:28:03.000Z (about 1 month ago)
- Last Synced: 2024-11-16T11:23:38.818Z (about 1 month ago)
- Language: JavaScript
- Size: 126 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```