Skip to content
This repository has been archived by the owner on Jun 5, 2023. It is now read-only.
/ serve-u Public archive

An easy-to-use private asset repository

Notifications You must be signed in to change notification settings

vinhvn/serve-u

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

An easy-to-use private asset repository to allow authorized users to upload and serve static files. In short, it's a personal and private clone of imgur.

🔍 Preview

Preview

🕹️ Demo

Feel free to try out ServeU at serveu.vincentnguyen.ca.

The password to the demo account is demo. Any files uploaded to the demo repository will be removed from the database and deleted after approximately 1 hour.

🚀 Features

ServeU is a platform where authorized users can upload and share files with their colleagues, friends, and anyone else with a link.

Supported features include:

  • Randomized and adorable animal-based file IDs thanks to randimals
  • A simple sign in using a password tied to a personal account and repository
  • Upload images, audio, video, and any other files (NOTE: only image, audio, and video previews are supported)
  • Get a shareable link to the asset to send to colleagues and friends
  • Users may only see files that they have uploaded themselves

NOTE: Registration for users is currently only possible through the host or administrator.

🔧 Setup

💻 Client

To set up the client, navigate to the client folder and open .env.example to configure options:

REACT_APP_API_URL=https://localhost:3001

API_URL here refers to the location where the server is hosted. If working locally, no changes need to be made but for production, this should be changed to the domain and port where the server is hosted. When your changes are done, rename .env.example to .env to allow the project to use it.

Afterwards, install yarn and run the following two commands to get started:

yarn install
yarn dev

For additional commands and information, please refer to the client README.

🌐 Server

To set up the server, navigate to the server folder and open .env.example to configure options:

PORT=3001
ADMIN_USERNAME=admin
ADMIN_PASSWORD=password
DEMO_USERNAME=demo
DEMO_PASSWORD=demo
API_KEY=someLongAndComplexStringOfCharacters
API_URL=https://localhost:3001
APP_URL=https://localhost:3000

API_URL and APP_URL refers to the locations where the server and app are located, respectively. If working locally, no changes need to be made but for production, these should be changed to the domain(s) and ports where the two will be hosted. When your changes are done, rename .env.example to .env to allow the project to use it.

Afterwards, install yarn and run the following two commands to get started:

yarn install
yarn dev

For additional commands and information, please refer to the server README.

License

Under the MIT License.