This is a simple boilerplate for the frontend task. You are free to use it and modify it to your needs.
npm install
npm run dev
This will start a simple dev server with hot reload using vite and express for some mock API requests.
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.
GET /api/files
POST /api/upload-single
Body parameter | Type | Description |
---|---|---|
file |
file |
Required. The file to upload |
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 |
The boilerplate provides Tailwind CSS by default. If you want to use something else, feel free to add it.
Vitest is provided by default for testing, however you are free to use whatever you like and are familiar with.