README.md 1.68 KiB
Newer Older
Scharkee's avatar
Scharkee committed
# [WIP] Scharkee-vid
---
##### - a redistributable private video hosting platform.
*linux only for the time being*

Scharkee's avatar
Scharkee committed
* Uncompressed video hosting, resulting in fast uploads and minuscule processing times
* Link-based video sharing, no public video searching and/or display
* Anonymous likes/dislikes
* Admin panel (video list, remaining space & user stats)
* User dashboard:
    * Statistics
    * Video list w/ video renaming, removal and link regeneration

Scharkee's avatar
Scharkee committed
---
## Quick setup:

```shell
git clone http://padan.ga:23343/root/scharkee-vid.git
npm install
Scharkee's avatar
Scharkee committed
npm run dev 
Scharkee's avatar
Scharkee committed
```
Scharkee's avatar
Scharkee committed
* The application can now be accessed at localhost:10700
* The first registered user will be set as admin
* The registration page is accessible by pressing Alt+R while editing the username field in the landing/login page
Scharkee's avatar
Scharkee committed

Scharkee's avatar
Scharkee committed
---
Scharkee's avatar
Scharkee committed
##### PREREQUISITES:
* **.env file in the root directory with the following contents:**
Scharkee's avatar
Scharkee committed
    1. ``FILE_PATH`` - video storage path, must also be served as static content, relative to the root dir
Scharkee's avatar
Scharkee committed
    2. `SESSION_KEY` - a random string, needed for the express-session module
    3. `DB_USERS_PATH`,`DB_VIDEOS_PATH`, `DB_CODES_PATH` and `DB_RATINGS_PATH` - database paths, relative to root dir, no extension needed
    4. `TOTAL_SPACE` - the total amount of space you are willing to dedicate for the website. It will not allow any more registrations when the amount of reserved user space exceeds `TOTAL_SPACE` **(in bytes)**
    5. `MAIL_UN` and `MAIL_PASS` - gmail account credentials, will be used for password resets
Scharkee's avatar
Scharkee committed

---
##### SCRIPTS:

* ``npm run dev`` rebuilds and runs the server
* ``npm run codes`` opens the code manipulation console interface (upgrade and registration codes: space upgrades, admin status codes)