Install dependencies: pip install .
Install node dependencies: npm install --no-optional
Run server: python manage.py runserver &
python manage.py flush
python manage.py loaddata benchmarks/fixtures/fixture-benchmarkreferences.json
python manage.py loaddata benchmarks/fixtures/fixture-benchmarktypes.json
python manage.py loaddata benchmarks/fixtures/fixture-benchmarkinstances.json
python manage.py loaddata benchmarks/fixtures/fixture-users.json
python manage.py loaddata benchmarks/fixtures/fixture-modelreferences.json
python manage.py loaddata benchmarks/fixtures/fixture-models.json
python manage.py loaddata benchmarks/fixtures/fixture-scores.json
If you need to reset the database and all migrations (relevant after changing models.py):
- delete
db.sqlite3 python manage.py makemigrationspython manage.py migrate
- save website locally (Ctrl+S
http://localhost:8000) - replace
http://localhost:8000/#*with#(when saved with Chrome) - replace
http://localhost:8000/benchmarks/fixtures/img/icon.pngwithhttps://s3.amazonaws.com/www.brain-score.org/icon.png - delete the svg from
<div id="brain-score"> - In
compare.js, replace the static json link/benchmarks/fixtures/fixture-scores-javascript.jsonwithhttps://s3.us-east-2.amazonaws.com/brain-score.web-mock/fixture-scores-javascript.jsonorfixture-scores-javascript.json - upload
Brain-Score.html,Brain-Score_filesandfixture-scores-javascript.jsonto S3 (account id ****75, bucket www.brain-score.org)
See deployment.md