/File-Sharing-API-Server

The File Storage API is used to save files, and to download and move files

Primary LanguageJavaScript

File-Sharing-API-Server

Github top language Github language count Repository size License Github issues Github forks Github stars

Status

🚧 File-Sharing-API-Server 🚀 Under construction... 🚧


About   |   Features   |   Technologies   |   Requirements   |   Starting   |   Author


🎯 About

Describe your project

✨ Features

✔️ User authentication system;
✔️ File shearing;
✔️ FIle upload and download file;

🚀 Technologies

The following tools were used in this project:

✅ Requirements

Before starting 🏁, you need to have Git and Node installed.

🏁 Clone project

# Clone this project
$ git clone https://github.com/sakibhasancse/File-Sharing-API-Server

# Access
$ cd File-Sharing-API-Server

# The server will initialize in the <http://localhost:3000>

:Environment variable setup

PORT=3000
MONGO_DB_URL=mongodb://localhost:27017/fileStorageApi
#user auth  
USER_AUTH_JWT_SECRET=your secret
JWT_ACCESS_TOKEN_EXPIRE=60d
JWT_REFRESH_TOKEN_EXPIRE=1d

#file auth 
FILE_ACCESS_JWT_SECRET=your secret
FILE_EXPIRE=1d

#max file size - 2mb
MAX_FILE_SIZE=2 
#old file remove, 1d
REMOVE_MAX_AGED_FILE_TIME= 24 * 60 * 60 * 1000

#if you use auth service kip it false, otherwise use true
USE_DEMO_USER=false

#google cloud storage, under construction
#GOOGLE_CLOUD_PROJECT_ID
#GOOGLE_CLOUD_KEYFILE 

:Start project

# Install dependencies
$ yarn

# Run the project
$ yarn start

Made with ❤️ by Sakib Hasan

 

Back to top