Simple file server uses Fastify, MongoDB + GridFS.
Create .env
in the root directory and set the next fields:
-
APP_PORT
- port in which the app will run -
MONGODB_URI
- mongodb URI
You can use the example below for local environment:
APP_PORT=3001
MONGODB_URI=mongodb://localhost:27017/filestorage-f
Run npm i
to install all dependencies.
Run npm start
to start the app in watch mode.