Access the site at statemachine.live
Alternatively, this README will guide you through the process of setting up and running the application.
- Prerequisites
- Installation
- Configuration
- Database Migration
- Running the Application
- Additional Commands
- Troubleshooting
- Contact
Before running the application, make sure you have the following installed:
- Python (version 3.6 or higher)
- Django (version 4.0 or higher)
- Virtual environment manager (e.g., virtualenv or conda)
-
Clone the repository:
git clone https://github.com/Stebbet/FSM_Designer.git cd FSM_Designer
not
cd FSM_Designer/FSM_Designer
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS/Linux:
source venv/bin/activate
- On Windows:
-
Install dependencies:
pip install -r requirements.txt
-
Configure the application:
- Rename the provided
.env.example
file to.env
. - Update the configuration parameters in the
.env
file such as database credentials, secret key, debug mode, and other settings as needed.
- Rename the provided
-
Configure Django settings:
- Ensure the settings in
settings.py
or your custom settings file are set up according to your application requirements.
- Ensure the settings in
-
Apply database migrations:
python manage.py makemigrations python manage.py migrate
-
Collect the static files
python manage.py collectstatic
-
Start the Django development server:
python manage.py runserver
-
The application should now be running at
http://127.0.0.1:8000/
.
- Create a superuser:
python manage.py createsuperuser
- Run unit tests:
python manage.py test
- If you encounter any issues, check the Django error messages for more information.
- Ensure your environment variables in the
.env
file are correctly set up. - Confirm your database is running and accessible.
If you have any questions or issues, feel free to reach out to the project maintainer at samtebbet@gmail.com.