Task Boilerplate

This is a simple boilerplate for the frontend task. You are free to use it and modify it to your needs.

Installation

npm install
npm run dev

This will start a simple dev server with hot reload using vite and express for some mock API requests.

API

You find the express API under src/server. A file upload API is provided. You can use it and/or modify it to your needs.

List of files

GET /api/files

Upload a single file

POST /api/upload-single
Body parameter Type Description
file file Required. The file to upload

Upload a file in chunks

POST /api/upload-chunks
Body parameter Type Description
file file Required. The file to upload
currentChunkIndex number Required. The current chunk index number
totalChunks number Required. The total number of chunks

Styling

The boilerplate provides Tailwind CSS by default. If you want to use something else, feel free to add it.

Testing

Vitest is provided by default for testing, however you are free to use whatever you like and are familiar with.