Description:
2nd Product API is a RESTful API similar to the OLX website. Users can register and login to obtain an access token, enabling them to explore the API, sell products, buy items, and add products to their cart. The API provides powerful search capabilities, allowing users to find products based on queries, tags, or view all available products.
Made with:
- Python
- FastAPI
- Pydantic Models
- Mongoengine
API Documentation:
https://twondproductapi.onrender.com
License:
This project is licensed under the MIT License. License File
API Link:
https://twondproductapi.onrender.com/
Running the API Locally:
- Clone the repository:
git clone https://github.com/PrathameshDhande22/2nd-Product-API.git
- Create a virtual environment:
python -m venv venv
- Activate the virtual environment:
- On Windows:
venv\Scripts\activate
- On macOS and Linux:
source venv/bin/activate
- Install dependencies:
pip install -r reqirements.txt
- Edit
.env
file:
MONGODB_URI="Your MongoDB URI"
SECRET_KEY="Your Secret Key"
- Run the
run.py
file:
python run.py