-
Notifications
You must be signed in to change notification settings - Fork 346
Development FAQs
- Table of Contents
- How do I populate the database with test data?
- How do I log in?
- How do I generate PDFs?
- Where can I view all API documentation?
Run the database population rake task:
$ rake db:populate
If your database schema is out of date, you may need to run the migrate command as first:
$ rake db:migrate
$ rake db:populate
You will be prompted to do an extensive populate. This essentially simulates student's progress by signing off some tasks and making the population more extensive. Not necessary but is useful for playing around with visualisations.
After populating Doubtfire, all passwords are set to password
.
Useful usernames are:
- Administrator users:
acain
cwoodward
- Convenor users:
acummaudo
rwilson
- Tutor users:
angusmorton
cliff
- Student users:
student_0
student_1
After uploading documents to Doubtfire, you need to run the PDF generation script. This is run using the generate PDFs Rake task:
$ rake submission:generate_pdfs
If you run into issues with this, probably best to ask on the Slack team chat.
Note: You will need to have LaTeX installed for this as well as Python pygments. We suggest using the TeXLive distribution.
API endpoints are hosted at http://localhost:3000/api/docs/ when the server is running.