/fmsGen

Random generation of feature models

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Table of Contents

FMsGen: Random generation of feature models

A tool to generate random feature models.

Available online

🚧 Soon 🚧

Artifact description

🚧 Soon 🚧

How to use it

🚧 Soon 🚧

Deployment of the web application

The application can be deployed from scratch or using Docker.

Deployment from Scratch

Requirements

Download and install

  1. Install Python 3.10+

  2. Install Redis

    2a. Check if redis-server is running:

    systemctl status redis-server

    2b. If redis-server is not running, run it:

    redis-server

  3. Clone this repository and enter into the main directory:

    git clone https://github.com/jmhorcas/fmsGen.git

    cd fmsGen

  4. Create a virtual environment and activate it:

    python -m venv env

    . env/bin/activate

  5. Install the dependencies:

    pip install -r requirements.txt

Execution

  1. Go to the app folder: cd app

  2. Run Celery: celery -A app worker --loglevel INFO

  3. Run the Flask application: python app.py

Access to the web service in the localhost:

http://127.0.0.1:5000

Deployment using Docker

Requirements

Download and install

  1. Install Docker Engine

  2. Clone this repository and enter into the main directory:

    git clone https://github.com/jmhorcas/fmsGen.git

    cd fmsGen

  3. Build and launch:

    docker compose up -d --build

Execution

After building, the app is automatically launched in a container and it is exposed at:

http://127.0.0.1:5000

To add more worker to the application:

docker compose up -d --scale worker=5 --no-recreate

To shut down:

docker compose down

To get status and logs:

docker ps

docker logs 7b7ff37ed2d5

Video

🚧 Soon 🚧

References and third-party software