A Google Drive-inspired file storage app built with Node.js and Express. Users can upload images, organise them into folders, and share folders via time-limited links.
- Authentication — sign up and log in with a username and password; sessions are persisted in the database
- File uploads — upload JPEG, PNG, GIF, and WebP images up to 5MB, stored on Cloudinary
- Folders — create and delete folders; deleting a folder removes all its files from Cloudinary automatically
- File management — view file details (name, size, upload date), download, and delete files
- Shared folders — generate time-limited share links (1–30 days) for folders; anyone with the link can view and download files without an account
- Runtime — Node.js with Express 5
- Database — PostgreSQL via Neon, managed with Prisma 7
- Storage — Cloudinary
- Auth — Passport.js (local strategy) with bcrypt
- Sessions — express-session with Prisma session store
- Templating — EJS
- Validation — express-validator
- Security — Helmet
- Node.js 18+
- A Neon PostgreSQL database
- A Cloudinary account
- Clone the repository and install dependencies:
git clone https://github.com/bowman025/project-file-uploader.git
cd project-file-uploader
npm install- Create a
.envfile in the root directory:
DATABASE_URL=your_neon_pooled_connection_string
DIRECT_URL=your_neon_direct_connection_string
SESSION_SECRET=your_session_secret
CLOUDINARY_CLOUD_NAME=your_cloud_name
CLOUDINARY_API_KEY=your_api_key
CLOUDINARY_API_SECRET=your_api_secret
STORAGE_MODE=cloudinary- Run database migrations:
npx prisma migrate dev- Start the development server:
node --watch app.jsThe app will be available at http://localhost:3000.
The app is configured for deployment on Render. Set all environment variables from the .env file in your Render dashboard, and set NODE_ENV=production.
Built as part of The Odin Project Node.js curriculum.