-
Notifications
You must be signed in to change notification settings - Fork 7
Development Env
Henrique Dias edited this page Mar 31, 2023
·
4 revisions
This tutorial explain how to build a development environment to run NoHarm Backend.
- PostgreSQL > 10.x
- Python > 3.x
- Pip3
- Git
Run noharm-database scripts in your PostgreSQL instance in the following order:
you can run a similar script this in command line
$ git clone https://github.com/noharm-ai/backend
$ cd backend
$ python3 -m venv env
$ source env/bin/activate
$ pip3 install -r requirements.txt
$ python3 mobile.py &
$ curl -X POST -d '{"email":"teste", "password":"1234"}' -H "Content-Type: application/json" http://127.0.0.1:5000/authenticate
$ curl -X GET http://127.0.0.1:5000/prescriptions
$ python -m pytest -v
$ python -m pytest -v -k "test_get_existing_memory"