/go-react-download

Stream file from Go HTTP server to ReactJS application

Primary LanguageHTML

Golang & ReactJS Download file example

Simple Download file example:

  1. ReactJS application with button for file download.
  2. Golang HTTP server creates dynamically csv file and streams it to a response.

Requirements

  • docker
  • docker-compose

How to run

  1. Up
docker-compose up -d

* --build to rebuild

  1. Test

http://localhost/

  1. Down
docker-compose down --rmi local