diff --git a/README.md b/README.md index c717261..934bc47 100644 --- a/README.md +++ b/README.md @@ -15,124 +15,12 @@ Seniors will then be notified of this post and a senior can claim a review. Afte then fills out a rubric and enters their additional notes/comments. Finally, the instructor will then be able to take that data and enter the grades into another grading system accordingly. -### UI - -Basic material design layout and UI with primary, secondary, and accent colors. - ## Technical Using ActiveDirectory, users will log in to post a request for reviews, on posting an email will be sent to seniors and the instructor. Once a senior accepts the review, the instructor will receive an email. Upon completion of the code review, the instructor will get a final email with the notes the senior has given. -### Environment Variables - -- DEV_STAGE: The current stage of development options are: Dev, Prod, and GitHub -- PRODUCTION_HOST: The host to use in the production environment -- SECRET_KEY: Key to use in production as the Django secret key -- STATIC_DIR: A path to the directory to collect static files to -- EMAIL_HOST: The email server host we're connecting to -- EMAIL_USER: The username of the email we'll use to send notifications -- EMAIL_PASS: The password to use for the email -- EMAIL_DOMAIN: The domain to use when generating student emails -- EMAIL_ADMIN_DOMAIN: The domain to use when generating instructor emails -- DB_HOST: The host for the database we'll use (MySQL Type) -- DB_USERNAME: The name for the DB we'll use -- DB_PASS: The password for the DB we'll use -- LDAP_URL: The URL of the ActiveDirectory Server we want to use for auth -- LDAP_DOMAIN: The domain to use when logging users in -- LDAP_BASE_CONTEXT: The base context to use when searching for users - -## Running - -For both development and production, you'll need to clone the repository: - -```sh -git clone https://github.com/Bwc9876/CodeReview.git -``` - -...And install dependencies - -```sh -pip install -r requirements.txt -``` - -### Development - -First, set up a database to test with by running: - -```sh -python manage.py migrate -``` - -Then, you'll need to create a superuser to log in as - -```sh -python manage.py createsuperuser -Username: admin -Email: (Can be left blank) -Password: ******** -Confirm Password: ******** -``` - -Now you're ready to host the local development server by running - -```sh -python manage.py runserver 127.0.0.1:8000 -``` - -You can connect by typing "127.0.0.1:8000" in your browser - -#### Note about emails - -The app is set up to output all emails to the "debug-emails" folder in the project, so no emails will be sent. - -### Production - -First, set up your [environment variables](#Environment-Variables). Afterward, you'll need to run the following to set -up your database - -```sh -python manage.py migrate -``` - -Next, you'll need to collect static files to your STATIC_DIR by running - -```sh -python manage.py collectstatic -``` -Say yes to any prompts django asks you - -After this is completed, it's recommended you run [tests](#Tests) to ensure the website will work. -Next, you will need to set up Django with IIS, directions can be -found [here](https://medium.com/nonstopio/deploy-django-application-on-windows-iis-server-93aee2864c41). - -Note that you'll also need to setup static file serving from your STATIC_DIR. - -### Tests - -Tests are available through a file named run_tests.py - -```sh -python run_tests.py -``` - -#### Test Coverage - -To see how well tests cover the code, install coverage: - -```sh -pip install coverage==6.0.2 -``` - -Then run coverage - -```sh -coverage run -``` - -Finally, do this to show the report +## Help -```sh -coverage report -``` +For information on setting up and using the app, go to the [wiki](https://github.com/Bwc9876/CodeReview/wiki)