hack4impact-uiuc / philareads

A website that allows students to complete quizzes and earn badges in order to prepare for the annual Philadelphia READS Reading Olympics.
6 stars 7 forks source link

Improve local development #264

Closed ajdeleon closed 5 years ago

ajdeleon commented 5 years ago

Status:

Description

To run the project from the main directory run: docker-compose -f docker-compose-dev.yml up --build

This PR makes it a bit easier to start up all services synchronously. The current docker-compose-dev.yml makes use of dev environments like React dev server for hot reloading/other benefits and a pipenv environment for the backend. These will need to be changed and optimized for production.

For the React side this will involve an nginx container to replace the react dev server, but I'm not too sure out about the backend yet.

The .env file is included for ease, but of course these will need to be changed for production as well.

We'll also want to coordinate how we handle #253 with this new dev environment in mind. However we choose to seed the db will have to take into account

Related issues: #250

vipatron commented 5 years ago

It works for me (Win 10/docker desktop for windows/git bash). On initial image build, I get an exception, but it appears to resolve on its own (some port conflict, output stored in this gist. I am able to view the frontend, with no data in the backend, as referenced by AJ above.