This tool is used to convert non-deterministic finite automata (NFA) to deterministic finite automata (DFA) through an interactive and visual interface.
UI/UI I used and custom in nfa-to-dfa
-
Clone repository
To set up app in your local, first clone this repository:
git clone https://github.com/quanpersie2001/DFA-Converter
-
Creat & activate virtual environment
python -m venv venv
Active
venv
venv/Scripts/activate
-
Install dependencies
pip install -r requirements.txt
-
Set environment variables
Edit your environment in
.env
-
Run server
flask run --port=8000
Running this script should give an output similar to below:
* Serving Flask app 'application.py' * Debug mode: on [2023-05-21 03:19:10] INFO _internal.py line 224: WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead. * Running on http://127.0.0.1:8000 [2023-05-21 03:19:10] INFO _internal.py line 224: Press CTRL+C to quit [2023-05-21 03:19:10] INFO _internal.py line 224: * Restarting with stat [2023-05-21 03:19:11] WARNING _internal.py line 224: * Debugger is active! [2023-05-21 03:19:11] INFO _internal.py line 224: * Debugger PIN: 139-055-000
You can now navigate to http://localhost:8000 in the browser to view the application.