Status
About | Features | Technologies | Requirements | Starting | Author
Describe your project
✔️ User authentication system;
✔️ File shearing;
✔️ FIle upload and download file;
The following tools were used in this project:
Before starting 🏁, you need to have Git and Node installed.
# 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