tesseradecades / player-scheduler

0 stars 0 forks source link

Running Flask back end and React front end together in heroku #2

Open tesseradecades opened 5 years ago

tesseradecades commented 5 years ago

Need to create a basic flask api in the same project and have it run simultaneously with React on the heroku instance.

Definition of Done: On the test instance, one should be able to see the React front end, and be able to access an endpoint of the Flask backend

tesseradecades commented 5 years ago

After experimenting, the best way to run them both would be to split the repositories. One for the react front end, and one for the flask backend. The separate projects should push to separate instances, with the react front end referencing the correct back end via an environment variable depending on the place in pipeline(local, staging, production) that it is in.

tesseradecades commented 5 years ago

The React Front-end shall be a single page app with a form granting the necessary information to plot the schedule. This information is then sent to the flask app, who shall reply back with the schedule's information. The front end shall display the schedule(possibly in a modal), and offer the ability to download the schedule in xls format.

tesseradecades commented 5 years ago

The Flask backend requires a single endpoint for ingesting the information.