Django Coordinates // Distance between coordinates
An application that should have an API endpoint that accepts a string of comma separated points for example “(2,3), (1,1), (5, 4), ...” and calculates the closest points. It then stores them in a table with the following details:
- The string of points submitted
- The result of the computation: the closest points pair
Here are some of the features:
- Input Points and create closest two coordinates
This is an example of how you may give instructions on setting up your project locally. To get a local copy up and running follow these simple example steps.
This is an example of how to list things you need to use the software and how to install them.
-
Access Github https://github.com
-
Clone the repo
git clone https://github.com/lupamo3/django-points/tree/master
-
Change directory into the Django points directory :
cd django-points
-
Create and activate your virtual environment :
Virtual venv python=[Python-Version] Pip install auto-env
-
Install Project Requirements
pip install -r requirements.txt
- Run the application
python3 manage.py runserver
- Run tests
python3 manage.py test
- Run Co-ordinates Endpoints on your postman to test the URLs
or use:
URL | METHOD | MESSAGE |
---|---|---|
points/ | POST | Input an Array and number of points. |
- Feel free to reach me via email and to fork this project
- Any feedback would be appreciated.
- The Pull requests have bit by bit application documentation
Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Your Name - @nlanjichi
Project Link: https://github.com/lupamo3/django-points