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 static/benchmarks/fixture-bibs.json
python manage.py loaddata static/benchmarks/fixture-models_meta.json
python manage.py loaddata static/benchmarks/fixture-benchmarks.json
python manage.py loaddata static/benchmarks/fixture-scores.json
If you need to reset the database and all migrations (relevant after changing models.py
):
- delete
db.sqlite3
python manage.py makemigrations
python manage.py migrate
- save website locally (Ctrl+S
http://localhost:8000
) - replace
http://localhost:8000/#*
with#
(when saved with Chrome) - replace
http://localhost:8000/static/benchmarks/img/icon.png
withhttps://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/static/benchmarks/fixture-scores-javascript.json
withhttps://s3.us-east-2.amazonaws.com/brain-score.web-mock/fixture-scores-javascript.json
orfixture-scores-javascript.json
- upload
Brain-Score.html
,Brain-Score_files
andfixture-scores-javascript.json
to S3 (account id ****75, bucket www.brain-score.org)