Free classroom-oriented instructor-moderated question and answer forum. Inspired by Piazza.
- Install dependencies
- PostgreSQL, Python3, pip:
sudo apt install build-essential postgresql libpq-dev python3 python3-pip - Flutter
- PostgreSQL, Python3, pip:
- Set up database
- Start the Postgres service:
sudo service postgresql start - Change the password of the postgres user
- Open psql:
sudo -u postgres psql - Change the password:
\password postgres- Remember this, you'll need it later!
- Quit psql:
\q
- Open psql:
- Create the Oval database:
sudo -u postgres createdb oval - Change Postgres's authentication mode
- Find the configuration file:
sudo -u postgres psql -c "show hba_file;" - Open the configuration file:
sudo vim [configuration file path] - Change "md5" to "password" in these lines:
# IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5
- Find the configuration file:
- Start the Postgres service:
- Set up back end
- Navigate to the back end directory
- Install the dependencies in the Django project:
pip3 install -r requirements.txt - Set up the environment variables file
- Copy .env.example and rename it to .env
- Populate the fields in the file
- Run Django migrations:
python3 manage.py migrate
- Set up front end
- Navigate to the front end directory
- Install the dependencies in the Flutter project:
flutter pub get - Set up the environment variables file
- Copy .env.example and rename it to .env
- Populate the fields in the file
- Run back end:
python3 manage.py runserver - Run front end:
flutter run