Skip to content

CMU-Math/probase

Repository files navigation

Probase: CMIMC's Problem Database

Getting Started

Setup

  1. Make sure you have Python installed on your computer.

  2. Clone this repository: git clone https://github.com/CMU-Math/probase.git

  3. In the newly created folder, run pip install --user -r requirements.txt

  4. Then run Django migrations: python manage.py migrate

  5. Start the Django development server: python manage.py runserver

  6. Go to http://127.0.0.1:8000/ in your browser, and you should see the home page. It should look like the image below:

    Home Page

Making user accounts

  1. First, create a super user account: python manage.py createsuperuser. You can enter any name, email, and password.
  2. Visit http://127.0.0.1:8000/ again, and log in with the account you just created. You should be redicted to the 'All Problems' page. There won't be any problems yet, but you can create one with the 'New Problem' button.
  3. The super user account you created in step 1 has all permissions enabled: problem writer, testsolver, and staff. If you create a new account normally (click 'log out', then 'sign up' in the top right), it will have no permissions enabled by default. You have to go to the Manage Users page to change their permissions.

Tutorials

For anyone new to either Python, Django, or Bootstrap, here are some tutorials.

Python Tutorials:

Django Tutorials:

Bootstrap:

Git: