The File Manager application is a simple tool designed to help users manage their files and folders effortlessly
git clone https://github.com/nayanprasad/react-file-managercd react-file-manager- Install server dependencies
cd server pnpm install - Install client dependencies
cd client pnpm install
-
Create a
config.envfile in theserver/configdirectorycd server/config touch config.envNow open the
config.envfile and add the following environment variablesPORT=5000 MONGO_URI=<your_mongodb_uri> JWT_SECRET=<your_jwt_secret> JWT_EXPIRES_IN=30d COOKIE_EXPIRE=30
-
Create a
.envfile in theclientdirectorycd client touch .envNow open the
.envfile and add the following environment variablesREACT_APP_BASE_URL=http://localhost:5000 UPLOADTHING_SECRET=<your_uploadthing_secret> UPLOADTHING_APP_ID=<your_uploadthing_app_id>
-
Start the server
cd server pnpm run dev -
Start the client
cd client pnpm next dev