Commit 478d685b authored by adietmue's avatar adietmue
Browse files

Some horrible fixes so someone can actually work with this

parent 3d03daa5
......@@ -11,7 +11,7 @@ from datetime import datetime as dt, timedelta
import requests
PVK_DEV_URL = 'http://localhost:8080' # ''
PVK_DEV_URL = 'http://localhost:80' # ''
DATE_FORMAT = "%Y-%m-%dT%H:%M:%SZ"
ASSISTANTS = ['pablo', 'assi', 'anon', 'mongo']
......@@ -3,7 +3,7 @@
import m from 'mithril';
import session from './session';
const pvkApiUrl = `//${window.location.hostname}/api`;
const pvkApiUrl = `//${window.location.hostname}`;
// Helper to filter temp out of list
function withoutTemp(list, temp) { return list.filter(item => item !== temp); }
......@@ -4,7 +4,50 @@ A new AMIV PVK tool using Eve and authenticating users with AMIVAPI.
## Frontend
1. [Install Docker](
(Make sure to verify your installation!)
2. You need MongoDB. Luckily, you can just use Docker for that, too.
(It's one long command, make sure to copy everything to your command line)
docker run --name mongodb -d -p 27017 \
-e MONGODB_USERNAME="pvkuser" \
-e MONGODB_PASSWORD="pvkpass" \
The environment variables specified with `-e` make sure that the db and user
are created
3. Start the dev-container
docker run --name pvk -d -p 80:8080 \
--link mongodb \
-e MONGO_HOST="mongodb" \
The `--link` and `-e` make sure the backend can access the db container.
And now the backend is available at port 80, ready to use!
4. Create some demo data
python Backend/ alex_itet_admin pvk
5. Now to the frontend: Install `node` and `npm`
Inside the `Frontend` directory, fist install the build and dependencies
with `npm install` and then start the dev server with `npm start`
(the dev server will reload whenever you change anything. If it does not
try `sudo npm start`)
Now, in your browser, open `localhost:9000`
## Backend
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment