Bazaarche is an e-commerce api project built with FastAPI and PostgreSQL.
Before you begin, ensure you have met the following requirements:
- Python 3.8+
- PostgreSQL
-
Clone the repository:
git clone https://github.com/m.mohamadi490/bazaarche_api.git cd bazaarche
-
Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables:
cp .env.example .env
Edit the
.env
file with your database credentials and other configuration.
-
Start the FastAPI server:
uvicorn main:app --reload
or
fastapi dev main.py
-
Open your browser and navigate to http://127.0.0.1:8000/docs to view the API documentation.
Detailed API documentation is available at the /docs
endpoint when the server is running.
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
[m.mohamadi] - [[email protected]]
Project Link: https://github.com/mohamadi490/bazaarche_api