A simple application that demonstrates file upload using streaming.
- Keep the file on the client end. This is very useful especially in a serverless deployment (Since you are mindful of cost, then if you can keep from saving the file server side, then its good).
- Allows us to do things like track progress using the streamed chunks i.e. percentage of completed chunks of total chunks
- We could also do advanced operations like pause and resume the upload since we can track which chunk is currently being uploaded.
This is the more convenient option
- Install Docker on windows or Ubuntu
- Install docker-compose
All these commands should be run from the root folder
There is only one command to run once you clone the repo
make all
The web app can be loaded at http:https://localhost:3800
The backend api can be found at http:https://localhost:3600
It is composed of the following commands
- Run the migrations
make db
- Build the containers
make build
- Start the containers
make run
Navigate to the backend
cd backend
Then run one of the following commands
# development
$ yarn start
# watch mode
$ yarn start:dev
# production mode
$ yarn start:prod
Navigate to the frontend
cd frontend
Then run the app on port 3400
$ yarn dev --port=3400