Repo for UMBC CMSC 447 (Software Engineering) project. Our project: Digital Logic Simulator
Use the package manager pip to install django and remaining dependencies in requirements.txt within a your virtualenv
pip install djangoSet up git and clone the repository
git clone https://github.com/Electrimatics/digital_logic_simulator.gitThe required python packages are found in the requirements.txt file. To install them:
pip install -r requirements.txtNo additional configuration is necessary.
Additionally, in order to run the web application and test suite,
you must create a .env file in the same directory as manage.py with the following information:
SECRET_KEY = "MY_SECRETE_KEY"
DEBUG = True
Set your secrete key to something else, ideally!
To setup the webapp, navigate to the directory with manage.py in it and run:
python3 manage.py flushto clear the old database. Then, update the database using:
python3 manage.py migrateThen, you can run the webapp using:
python3 manage.py runserverThe Django test framework allows you to either run every unittest at the same time or individual ones. To run all unit tests, navigate to the directory where manage.py and run:
python3 manage.py testTo run all the tests in a module, run
python3 manage.py [module_name].testsTo run a specific test case in a module, run
python3 manage.py [module_name].tests.[case_name]For additional information on running tests, visit the DJango test tutorial
To run all the tests in the gates module, run
python3 manage.py test gate.testsTo run the TestGenericLogicGate case specifically, run
python3 manage.py test gates.tests.TestGenericLogicGate