http://[2605:fd00:4:1001:f816:3eff:fe83:5737]/
- docker
- docker-compose
- mysql 5.7
- yarn
- Clone the repository
- Create a local MySQL database
- Copy and customize environment variables to match local database
$ cd learning-sciences/app $ cp .env.template .env - Run yarn install (if this is your first build or new packages are added)
$ cd learning-sciences/app/frontend $ yarn install - Run docker-compose
$ docker-compose up --build
- Migrate & seed the database
$ docker-compose run backend python manage.py migrate $ docker-compose run backend python manage.py loaddata all-data
- Navigate to
localhost:8000in your browser. It should say 'The install worked successfully! Congratulations!' - Navigate to
localhost:3000in your browser. You should see a React logo
Front-end React tests
$ docker-compose run frontend yarn testBack-end Django tests
$ docker-compose run backend python manage.py testMake sure all the following pass without errors:
$ docker-compose run frontend yarn test
$ docker-compose run backend python manage.py test
$ docker-compose run backend pycodestyle .