Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Peel #25

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Peel #25

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
VUE_APP_SERVER_URL = http://localhost:5000
# VUE_APP_SERVER_URL = https://internal.forensic-architecture.org/mtriage-server
27 changes: 21 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,11 +1,26 @@
.vscode/
.DS_Store
node_modules
dist
src/assets/class_vid*
src/assets/test*

# local env files
.env.local
.env.*.local

# Log files
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Editor directories and files
.idea
.vscode
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw*
tags
tags.lock
tags.temp

server/mtbatches/
server/__pycache__

viewer/.env
38 changes: 21 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
# mtriage-viewer
# example

#### note: pre-alpha development, not ready for use. Everything will break!
## Project setup
```
npm install
cp example.env .env
```

mtriage-viewer is a server collected with a web frontend to interactively
visualise [mtriage](https://github.com/forensic-architecture/mtriage) workflows
after they have been run.
### Compiles and hot-reloads for development
```
npm run serve
```

## Run the server
### Compiles and minifies for production
```
cd server
poetry install
poetry shell
export FLASK_ENV=development
python app.py
npm run build
```

Modify `ROOT` and `STORAGE_TYPE` variables inside app.py to point to another
storage location.
### Run your tests
```
npm run test
```

## Run the frontend
### Lints and fixes files
```
cd viewer
npm install
npm run dev
npm run lint
```

### Customize configuration
See [Configuration Reference](https://cli.vuejs.org/config/).
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
23 changes: 0 additions & 23 deletions viewer/.gitignore

This file was deleted.

30 changes: 0 additions & 30 deletions viewer/README.md

This file was deleted.

File renamed without changes.