Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/panagiotisdrakatos/lashapi

LashApi project
https://github.com/panagiotisdrakatos/lashapi

Last synced: 7 days ago
JSON representation

LashApi project

Awesome Lists containing this project

README

        

# LashApi
LashApi project

## Installation
Here is the installation process for building the Lash api project. Firstly make
sure git is installed

```bash
sudo apt-get install git
```
After that perform git clone:
```bash
git clone https://github.com/PanagiotisDrakatos/LashApi
cd LashApi
```
To continue make sure the [setup.sh](https://github.com/PanagiotisDrakatos/LashApi/blob/master/setup.sh) script has the required permissions
to run correctly

```bash
chmod 777 setup.sh
sudo ./setup.sh
```

After the successful setup of the environment we need to make sure that the server
is started. As a result we execute the following command:
```bash
python3 manage.py runserver 'IP':80
```
We wait to see the following screenshot.
This command will ensure our server is bootsraped with the given ip in the port 80
![Screenshot](example.png)

## Test Api
Open a browser and hit the following and wait patiently your result

```bash
http://172.104.245.69/factorization/?oids=2,44,47](http://194.42.17.241/factorization/?buid=username_1373876832005&modelid=2&prevX=35.144478604108&prevY=33.411452583969&prevDeck=-1&smas_db_location_bound_meters=0.0001&oids=100,100,103)http://194.42.17.241/factorization/?buid=username_1373876832005&modelid=2&prevX=35.144478604108&prevY=33.411452583969&prevDeck=-1&smas_db_location_bound_meters=0.0001&oids=100,100,103

{"flid":2728,"x":35.144805123638,"y":33.411077074707,"deck":-1}
```

**Attention!!!** One last thing in the first run we make sure we wait at least 3 min for the api to execute.