2024-06-26 13:10:24 +00:00
|
|
|
# misp-exercise-dashboard
|
|
|
|
|
2024-06-26 13:46:40 +00:00
|
|
|
## Installation
|
|
|
|
```bash
|
|
|
|
# Setup venv
|
|
|
|
python3 -m venv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
|
|
|
|
# Install deps
|
|
|
|
pip3 install -r REQUIREMENTS
|
|
|
|
```
|
|
|
|
|
|
|
|
## Running the PROD setup
|
|
|
|
```bash
|
|
|
|
python3 server.py
|
|
|
|
# Access the page http://localhost:3000 with your browser
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Running the DEV setup
|
|
|
|
```bash
|
|
|
|
python3 server.py
|
|
|
|
```
|
|
|
|
```bash
|
|
|
|
npm run dev
|
|
|
|
# Access the page provided by the output of the above command
|
|
|
|
```
|
2024-06-26 13:10:24 +00:00
|
|
|
|
|
|
|
## Recommended IDE Setup
|
|
|
|
|
|
|
|
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur).
|
|
|
|
|
|
|
|
## Customize configuration
|
|
|
|
|
|
|
|
See [Vite Configuration Reference](https://vitejs.dev/config/).
|
|
|
|
|
|
|
|
## Project Setup
|
|
|
|
|
|
|
|
```sh
|
|
|
|
npm install
|
|
|
|
```
|
|
|
|
|
|
|
|
### Compile and Hot-Reload for Development
|
|
|
|
|
|
|
|
```sh
|
|
|
|
npm run dev
|
|
|
|
```
|
|
|
|
|
|
|
|
### Compile and Minify for Production
|
|
|
|
|
|
|
|
```sh
|
|
|
|
npm run build
|
|
|
|
```
|
|
|
|
|
|
|
|
### Lint with [ESLint](https://eslint.org/)
|
|
|
|
|
|
|
|
```sh
|
|
|
|
npm run lint
|
|
|
|
```
|