Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

File Service

Takes uploads (documents, profile and portfolio images) and serves them back. Files are written to a local uploads/ folder, which is created on first run.

  • Port: 3005
  • Routes: /api/files/*

Running

npm install
npm run dev     # live reload (ts-node-dev)
npm run build   # compile to dist/

Environment (.env)

PORT=3005
MONGO_URI=<mongodb connection string>
FRONTEND_URL=http://localhost:5173
API_GATEWAY_URL=http://localhost:3000
JWT_ACCESS_SECRET=<shared with all services>

Folder layout

src/
  config/       db connection
  controller/   upload and download handlers
  middleware/   auth, multer upload
  models/       Mongoose schemas
  routes/       Express routers
  index.ts      entry point
uploads/        stored files (created at runtime)

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages