Skip to content

Development FAQs

Jake Renzella edited this page Dec 13, 2016 · 3 revisions

Table of Contents

How do I populate the database with test data?

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.

How do I log in?

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

How do I generate PDFs?

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.

Where can I view all API documentation?

API endpoints are hosted at http://localhost:3000/api/docs/ when the server is running.

Clone this wiki locally