❯ Microservice for manage images and other files for uPixel store.
└── upixel-fileserver/
├── .github
│ └── workflows
├── LICENSE
├── misc
│ └── upixel_fileserver_postman.json
├── package-lock.json
├── package.json
└── src
├── config
├── controllers
├── error-handler.js
├── middlewares
├── server.js
└── services
Route | Method | Details |
---|---|---|
Index | GET | Show API information |
List | GET | List all files |
Upload | POST | Upload any file to temp directory |
Confirm | POST | Move staged file from temp directory to corresponding folder |
Cancel | DELETE | Delete staged file at temp directory |
Delete | DELETE | Delete file regardless of the location |
Before getting started with upixel-fileserver, ensure your runtime environment meets the following requirements:
- Clone the upixel-fileserver repository:
❯ git clone https://github.com/Artursrossi/upixel-fileserver
- Navigate to the project directory:
❯ cd upixel-fileserver
❯ npm install
Set the environment variables by creating a .env file using .env.example
Run upixel-fileserver using the following command:
Using npm
❯ npm start