Skip to content

Finite State Machine designer and simulator, developed by Sam Tebbet

License

Notifications You must be signed in to change notification settings

Stebbet/FSM_Designer

Repository files navigation

Finite State Machine Designer and Simulator

Access the site at statemachine.live

Alternatively, this README will guide you through the process of setting up and running the application.

Table of Contents

Prerequisites

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)

Installation

  1. Clone the repository:

    git clone https://github.com/Stebbet/FSM_Designer.git
    cd FSM_Designer

    not cd FSM_Designer/FSM_Designer

  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

    • On Windows:
      venv\Scripts\activate
    • On macOS/Linux:
      source venv/bin/activate
  4. Install dependencies:

    pip install -r requirements.txt

Configuration

  1. 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.
  2. Configure Django settings:

    • Ensure the settings in settings.py or your custom settings file are set up according to your application requirements.
  3. Apply database migrations:

    python manage.py makemigrations
    python manage.py migrate
  4. Collect the static files

    python manage.py collectstatic

Running the Application

  1. Start the Django development server:

    python manage.py runserver
  2. The application should now be running at http://127.0.0.1:8000/.

Additional Commands

  • Create a superuser:
    python manage.py createsuperuser
  • Run unit tests:
    python manage.py test

Troubleshooting

  • 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.

Contact

If you have any questions or issues, feel free to reach out to the project maintainer at samtebbet@gmail.com.


About

Finite State Machine designer and simulator, developed by Sam Tebbet

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published