Skip to content

Latest commit

 

History

History
64 lines (46 loc) · 1 KB

README.md

File metadata and controls

64 lines (46 loc) · 1 KB

PeakDB

Provides a database of the highest earth peaks !

Install

  • Python 3.7+ is mandatory
  • Linux only (here with CentOS)

Prerequesite: install and run MongoDB

Procedure

Back:

cd server/
yum install virtualenvwrapper
mkvirtualenv -p python3 peakdb
workon peakdb
pip install -r requirements.txt
python setup.py install
cd ..

Front:

cd front/
npm install
cd ..

Development usage

Run the servers

python server/peakdb/app.py

Served at localhost:5000/peaks

Optionally , a front Vue server is available :

cd front/
npm run serve

Front pages are available at localhost:8080 and localhost:8080/peaks

Run the tests

pytest server/tests

Docker setup

sudo docker-compose up