v1.0.0
- python https://www.python.org/
- flask: https://flask-restful.readthedocs.io/en/latest/
- mongodb: https://www.mongodb.com/
- docker: https://www.docker.com/
- api: http://pythonapi.jnpl.me/
- api documentation: http://pythonapi.jnpl.me/documentation/
- create virtualenv
virtualenv -p python python-env
- work on virtualenv
source python-env/bin/activate
- install python dependencies by running
pip install -r requirements.txt
- Generate documentation by running
apidoc -i ./app/ -o ./documentation/ -f .py
- Install database mock data by running
python seeders/seed_<seed-name>.py
- run
uwsgi app.ini
it will listen to http://localhost:8383 with authorization Header
- run
python -m unittest tests/test_<test-name>.py
- build
docker-compose build
- install pip
docker exec -ti pythonapi pip install -r requirements.txt
- seed data
docker exec -ti pythonapi python seeders/seed_<seed-name>.py
- run
docker-compose up
- run
docker-compose start
- run
docker exec -ti pythonapi python -m unittest tests/test_<test-name>.py