npm install
npm run devThis 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/filesPOST /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.