Example get request: https://mightyhive-challenge.herokuapp.com/getData/?key=contactDetails
python3(3.6.9)
git
- Clone the repository:
git clone https://github.com/AgustinPardo/Mightyhive-challenge.git
- Go inside "Mightyhive-challenge" app folder:
cd Mightyhive-challenge
- Install requirements:
pip install -r requirements.txt
- Create the database (db.sqlite3):
python manage.py migrate
- Populate the database-model based on "data.json" file:
python manage.py shell < model_dump.py
- Run the app server at http://127.0.0.1:8000/:
python manage.py runserver
python manage.py test
- Run app
- Open any web browser you prefer
- Go to http://localhost:8000/getData/?key= "key to search" (e.g. http://localhost:8000/getData/?key=friends)