Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

Commit 1e8ed76

Browse files
committed
refactor README
1 parent 43e403d commit 1e8ed76

File tree

3 files changed

+92
-84
lines changed

3 files changed

+92
-84
lines changed

README.md

Lines changed: 21 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -3,97 +3,34 @@ This is a template bootstrap for the integration example between [bpmn-visualiza
33

44
## Prerequisites
55

6-
💁 **You can skip this part if your system meets all the requirements listed below.**
6+
You can skip this part if your system meets all the requirements listed below 👇
77

8-
### Backend part:
8+
* [Backend requirements](./backend/README.md)
9+
* [Frontend requirements](./frontend/README.md)
910

10-
It is assumed that the following is installed on your system:
11-
12-
* `Python 3.6` or higher: https://www.python.org/downloads/
13-
* `pip`:
14-
* **Windows**: The Python installers for Windows include pip. You can make sure that pip is up-to-date by running:
15-
```sh
16-
py -m pip install --upgrade pip
17-
py -m pip --version
18-
```
19-
* **Unix/MacOS**: Debian and most other distributions include a [python-pip](https://packages.debian.org/stable/python/python3-pip) package. You can also install pip yourself to ensure you have the latest version by running:
20-
```sh
21-
python3 -m pip install --user --upgrade pip
22-
python3 -m pip --version
23-
```
24-
25-
* `venv`: keeps your environments clean by keeping the dependencies in a specific directory for your project. You can install virtualenv by running:
26-
* **Windows**:
27-
```sh
28-
py -m pip install --user virtualenv
29-
```
30-
* **Unix/MacOS**:
31-
```sh
32-
python3 -m pip install --user virtualenv
33-
```
34-
### Frontend part:
35-
* `nvm`: Node version manager to install `Node.js` and `npm`:
36-
* **Windows**:
37-
1. Donwload the latest release of [`nvm-windows`](https://github.com/coreybutler/nvm-windows#readme).
38-
2. Click on `.exe` file to install the latest release.
39-
3. Complete the installation wizard
40-
4. When done, you can confirm that nvm has been installed by running:
41-
```sh
42-
nvm -m
43-
```
44-
* **Unix/MacOS**:
45-
1. In your terminal, run the nvm installer by using `cURL` or `Wget` commands depending on the command available on your device. These commands will clone the nvm repository to a `~/.nvm` directory on your device:
46-
```sh
47-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
48-
49-
#or
50-
51-
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
52-
```
53-
2. Update your profile configuration: Running either of the above commands downloads a script and runs it. The script clones the nvm repository to `~/.nvm`, and attempts to add the source lines from the snippet below to the correct profile file (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`). If it doesn't automatically add nvm configuration, you can add it yourself to your profile file:
54-
```sh
55-
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
56-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
57-
```
58-
3. When done, you can confirm that nvm has been installed by running:
59-
```sh
60-
command -v nvm
61-
```
62-
4. If you run into problems, you can check the [complete documentation](https://github.com/nvm-sh/nvm#installing-and-updating).
63-
* `Node.js` and `npm`: Use `nvm` to install, and use, the current latest stable version of `Node.js` and `npm` by running:
64-
```sh
65-
nvm install --lts
66-
```
67-
Verify it worked by running:
68-
```sh
69-
node --version
70-
```
71-
```sh
72-
npm --version
73-
```
7411

7512
## Setup
76-
1. Clone the project template in your preferred IDE (e.g. VScode)
77-
2. Prepare the backend environment:
13+
* Clone the project template in your preferred IDE (e.g. VScode)
14+
* Prepare the backend environment:
7815
1. Navigate to the `backend` folder: `cd backend`
7916
2. Create a virtual environment for dependencies called `venv` using the following command:
80-
```sh
81-
python -m venv venv
82-
```
83-
3. Activate the created `venv`by running:
84-
* **Windows**:
85-
```sh
86-
venv\Scripts\activate.bat
87-
```
88-
* **Unix/MacOS**:
89-
```sh
90-
venv/bin/activate
91-
```
17+
```sh
18+
python -m venv venv
19+
```
20+
3. Activate the created `venv` by running:
21+
* **Windows**:
22+
```sh
23+
venv\Scripts\activate.bat
24+
```
25+
* **Unix/MacOS**:
26+
```sh
27+
venv/bin/activate
28+
```
9229
4. Install the required libraries listed in `requirements.txt` by running:
93-
```sh
94-
pip install -r requirements.txt
95-
```
96-
3. Prepare the frontend environment:
30+
```sh
31+
pip install -r requirements.txt
32+
```
33+
* Prepare the frontend environment:
9734
1. Navigate to the `frontend` folder: `cd ../frontend`
9835
2. Install the required libraries listed in `package.json` by running:
9936
```sh

backend/README.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Backend requirements
2+
3+
It is assumed that the following is installed on your system:
4+
5+
* `Python 3.6` or higher: https://www.python.org/downloads/
6+
* `pip`:
7+
* **Windows**: The Python installers for Windows include pip. You can make sure that pip is up-to-date by running:
8+
```sh
9+
py -m pip install --upgrade pip
10+
py -m pip --version
11+
```
12+
* **Unix/MacOS**: Debian and most other distributions include a [python-pip](https://packages.debian.org/stable/python/python3-pip) package. You can also install pip yourself to ensure you have the latest version by running:
13+
```sh
14+
python3 -m pip install --user --upgrade pip
15+
python3 -m pip --version
16+
```
17+
18+
* `venv`: keeps your environments clean by keeping the dependencies in a specific directory for your project. You can install virtualenv by running:
19+
* **Windows**:
20+
```sh
21+
py -m pip install --user virtualenv
22+
```
23+
* **Unix/MacOS**:
24+
```sh
25+
python3 -m pip install --user virtualenv
26+
```
27+
28+
* `Graphviz`: pm4py uses Graphviz to encode the structure of process models. It is the only software that needs to be installed on your system from https://graphviz.org/download/.

frontend/README.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Frontend requirements
2+
3+
You will need [Node.js](https://nodejs.org/) and [npm](https://www.npmjs.com/) to be installed on your system. Node.js `installer` is not recommended, since the Node installation process installs `npm` in a directory with local permissions and can cause permissions errors when you run npm packages globally. Node version manager like [nvm](https://github.com/nvm-sh/nvm) is usually recommended as explained below.
4+
5+
* `nvm`: Node version manager to install `Node.js` and `npm`:
6+
* **Windows**:
7+
1. Donwload the latest release of [`nvm-windows`](https://github.com/coreybutler/nvm-windows#readme).
8+
2. Click on `.exe` file to install the latest release.
9+
3. Complete the installation wizard
10+
4. When done, you can confirm that nvm has been installed by running:
11+
```sh
12+
nvm -m
13+
```
14+
* **Unix/MacOS**:
15+
1. In your terminal, run the nvm installer by using `cURL` or `Wget` commands depending on the command available on your device. These commands will clone the nvm repository to a `~/.nvm` directory on your device:
16+
```sh
17+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
18+
19+
#or
20+
21+
wget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash
22+
```
23+
2. Update your profile configuration: Running either of the above commands downloads a script and runs it. The script clones the nvm repository to `~/.nvm`, and attempts to add the source lines from the snippet below to the correct profile file (`~/.bash_profile`, `~/.zshrc`, `~/.profile`, or `~/.bashrc`). If it doesn't automatically add nvm configuration, you can add it yourself to your profile file:
24+
```sh
25+
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
26+
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
27+
```
28+
3. When done, you can confirm that nvm has been installed by running:
29+
```sh
30+
command -v nvm
31+
```
32+
4. If you run into problems, you can check the [complete documentation](https://github.com/nvm-sh/nvm#installing-and-updating).
33+
* `Node.js` and `npm`: Use `nvm` to install, and use, the current latest stable version of `Node.js` and `npm` by running:
34+
```sh
35+
nvm install --lts
36+
```
37+
Verify it worked by running:
38+
```sh
39+
node --version
40+
```
41+
```sh
42+
npm --version
43+
```

0 commit comments

Comments
 (0)