Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/prathameshdhande22/2nd-product-api
A RESTful API similar to OLX, allowing users to register, login for access token. Sell, buy, and explore products, search by query or tag.
https://github.com/prathameshdhande22/2nd-product-api
ecommerce-api fastapi fastapi-mongodb mongodb mongoengine olx-api pydantic python python3 requests
Last synced: 23 days ago
JSON representation
A RESTful API similar to OLX, allowing users to register, login for access token. Sell, buy, and explore products, search by query or tag.
- Host: GitHub
- URL: https://github.com/prathameshdhande22/2nd-product-api
- Owner: PrathameshDhande22
- License: mit
- Created: 2023-07-13T18:51:32.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-07-16T08:33:28.000Z (over 1 year ago)
- Last Synced: 2024-11-14T18:07:10.805Z (3 months ago)
- Topics: ecommerce-api, fastapi, fastapi-mongodb, mongodb, mongoengine, olx-api, pydantic, python, python3, requests
- Language: Python
- Homepage: https://twondproductapi.onrender.com/
- Size: 13.7 KB
- Stars: 4
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Rest API: 2nd Product API
![GitHub](https://img.shields.io/github/license/Prathameshdhande22/2nd-Product-API?logo=github&color=blue&style=flat-square)
[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)
**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](https://twondproductapi.onrender.com)**License:**
This project is licensed under the MIT License. [License File](LICENSE)**API Link:**
[https://twondproductapi.onrender.com/](https://twondproductapi.onrender.com/)**Running the API Locally:**
1. Clone the repository:
```
git clone https://github.com/PrathameshDhande22/2nd-Product-API.git
```
2. Create a virtual environment:
```
python -m venv venv
```3. Activate the virtual environment:
- On Windows:
```
venv\Scripts\activate
```
- On macOS and Linux:
```
source venv/bin/activate
```
4. Install dependencies:
```
pip install -r reqirements.txt
```
5. Edit `.env` file:
```
MONGODB_URI="Your MongoDB URI"
SECRET_KEY="Your Secret Key"
```5. Run the `run.py`
file:
```
python run.py
```## Author : Prathamesh Dhande