Skip to content

prathmkorgaonkar/SecureFileService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

1 Commit
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Secure File Upload Microservice (Express.js + TypeScript)

A secure backend microservice to handle authenticated file uploads, background processing, and metadata tracking using:

  • Express.js (MVC)
  • TypeScript
  • PostgreSQL with TypeORM
  • JWT authentication
  • Multer for file uploads
  • BullMQ + Redis for async processing

πŸ”§ Setup Instructions

1. Clone the repo & install dependencies

git clone https://github.com/prathmkorgaonkar/SecureFileService.git
cd secure-file-upload
npm install

2. Configure environment variables

Create a .env file in the root:

BACKEND_URL= http://localhost:3001
FILE_LOCATION = D:/Secure-File-Service/SecureFileService/
PORT=3001
JWT_SECRET=JWT_SECRET
POSTGRES_HOST=localhost
POSTGRES_PORT=5432
POSTGRES_USERNAME=postgres
POSTGRES_PASSWORD="password"
POSTGRES_DATABASE=fileupload
REDIS_HOST=localhost
REDIS_PORT=6379

3. Setup PostgreSQL database

CREATE DATABASE fileupload;

Or use docker-compose if configured.

4. Run the application

npm start

App runs at http://localhost:3001

πŸ“‚ Folder Structure

src/
β”œβ”€β”€ controllers/
β”œβ”€β”€ routes/
β”œβ”€β”€ models/
β”œβ”€β”€ services/
β”œβ”€β”€ middlewares/
β”œβ”€β”€ utils/
β”œβ”€β”€ jobs/
β”œβ”€β”€ config/
β”œβ”€β”€ uploads/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published