Commit 7979b2ab authored by Christine Plumejeaud's avatar Christine Plumejeaud
Browse files

API is tested locally. You can get metadata, or travels, or pointcalls data.

Using postgres, portic_v3 with the user api_user, password = 'portic'. READ only user.
parent 291eb76c
......@@ -42,11 +42,11 @@ Backend is running and serve the data on http://localhost:5004 (change the PORT
```bash
plumegeo@cchum-kvm-plume:~/navigo/Viz/porticapi$ git fetch origin master
plumegeo@cchum-kvm-plume:~/navigo/Viz/porticapi$ git reset --hard origin/master
plumegeo@cchum-kvm-plume:~/navigo/Viz/porticapi$ cd ..
plumegeo@cchum-kvm-plume:~/navigo/Viz$ cp porticapi/porticapi/apidata.py porticapi/porticapi/__init__.py
cd /home/plumegeo/navigo/Viz/porticapi
git fetch origin master
git reset --hard origin/master
cd ..
cp porticapi/porticapi/apidata.py porticapi/porticapi/__init__.py
sudo chown :www-data /home/plumegeo/navigo/Viz/porticapi/ -R
sudo chmod 755 /home/plumegeo/navigo/Viz/porticapi/ -R
......
......@@ -36,7 +36,7 @@ CORS(app)
#app.config.from_object('config')
#port = app.config['PORT']
port = '80'
postgresport = '8004'
postgresport = '5433'
def retrieveDataFromPostgres(query) :
......
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