You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: website/README.md
+7-11Lines changed: 7 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,9 +11,8 @@ Use all MISP modules through a dedicated website without requiring a MISP instan
11
11
The MISP Modules website uses [Poetry](https://python-poetry.org/) for dependency management. It is recommended to install dependencies in a virtual environment managed by Poetry.
12
12
13
13
### Prerequisites
14
-
- Python 3.8 or higher
14
+
- Python 3.10 or higher
15
15
- Poetry
16
-
-`misp-modules` installed in the parent directory (`../`)
17
16
18
17
### Steps
19
18
1.**Clone the Repository**:
@@ -35,13 +34,10 @@ The MISP Modules website uses [Poetry](https://python-poetry.org/) for dependenc
35
34
36
35
4.**Initialize the Database**:
37
36
```bash
38
-
poetry run db-init
37
+
poetry run mmw db init
39
38
```
40
39
This creates the database (`misp-module.sqlite`), initializes modules, and sets up the admin password (generated in development if not set).
41
40
42
-
5.**Install `misp-modules`**:
43
-
Ensure `misp-modules` is installed in the parent directory (`../misp-modules`). Follow the main repository’s instructions for setup.
44
-
45
41
## Configuration
46
42
47
43
Configuration is managed via a `.env` file in `website/`. Copy the example and edit as needed:
@@ -83,7 +79,7 @@ FLASK_APP=main
83
79
Run both `misp-modules` and the website in development mode with debug enabled:
84
80
85
81
```bash
86
-
poetry run dev-site
82
+
poetry run mmw dev
87
83
```
88
84
89
85
- If `ADMIN_PASSWORD` is unset in `.env`, a random 20-character password is generated and printed.
@@ -104,10 +100,10 @@ If `ADMIN_PASSWORD` is set in `.env`, the admin user is active. Access the login
104
100
Manage the database with the following commands:
105
101
106
102
```bash
107
-
poetry run db-init # Initialize database and modules
108
-
poetry run db-migrate # Generate a new migration
109
-
poetry run db-upgrade # Apply migrations
110
-
poetry run db-downgrade # Revert the latest migration
103
+
poetry run mmw db init# Initialize database and modules
104
+
poetry run mmw db migrate # Generate a new migration
105
+
poetry run mmw db upgrade # Apply migrations
106
+
poetry run mmw db downgrade # Revert the latest migration
0 commit comments