This NodeJS app let't you upload files and generate a link to download them. The generated links can be password protected as well.
- NodeJS v16.x
- MongoDB v5.x Windows | Mac
- MongoDB Compass(optional)
- tinyurl.com API key for shortening url links.
- Install dependencies:
npm install
- Run the app in devlopment environment:
cd configs
- create
dev.env
file in the configs folder with the following content:touch dev.env
NODE_ENV=development
MONGODB_LOCAL_URI=mongodb://localhost:27017/filesDB
ACCESS_TOKEN=<your tinyurl api token>
UPLOAD_PIN=<UPLOAD PIN SECRET OF YOUR CHOICE>
SIGN_COOKIE=<ANY SECRET KEY OF YOUR CHOICE>
- Make sure your mongoDB is running and accessible from your local machine.
- Finally start the app
npm run devstart
- Install dependencies:
npm install
- Make sure your mongoDB is running and accessible from your local machine.
- Finally start the tests
npm run test
- Read the Code of Conduct first.
- Contibuting guidelines