- Clone the repository:
git clone https://github.com/your-username/solo-traveller-api.git
- Navigate to the project directory:
cd solo-traveller-api
-
Create a virtual environment:
python3 -m venv env
-
Activate the virtual environment:
source env/bin/activate # Linux/macOS env\Scripts\activate # Windows
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
-
Create a
.env
file in the project root directory. -
Add the following environment variables:
CONNECTION_STRING= PASSWORD= USERNAME= TF_ENABLE_ONEDNN_OPTS= PORT= DEBUG=
-
-
Run the application:
python app.py
The API provides the following endpoints:
/
: save user informations./upload
: image classification for upload image and get the recommneted categories and stores./predict
: predict the user category and return the predicted stores and recomendations.
Contributions are welcome! Please submit a pull request with your changes.
This project is licensed under the MIT License. See the LICENSE file for details.
Thank you