This project utilizes FastAPI and PostgreSQL to manage variants of dresses. It implements CRUD operations (Create, Read, Update) for dress variants. The primary focus of this project is to learn FastAPI, SQLAlchemy, and Pydantic for schema creation.
- Install PostgreSQL: Download and install the PostgreSQL database management system from the official website.
- Install pgAdmin4: Download and install pgAdmin4, a PostgreSQL administration tool, for managing your PostgreSQL server and databases.
- Clone this repository to your local machine.
- Navigate to the project directory in your terminal.
- Use any code editor and run python environment
- Must Activate the environment in powershell or any terminal you have
- This help to run in virual environment, freeze the version of software and runs the smoothly program. If you want to frezze use freeze command to freeze the version
python -m venv env
.\\env\Scripts\activate.ps1
pip install -r requirements.txtDownload PGAdmin 4 and PostregresSQL for your system. Open PGadmin4 create and server and database. Set the password in Installation.
EXAMPLE : DATABASE_URL = "postgresql://username:password@localhost/databasename"uvicorn main:app --host 0.0.0.0 --port 80http://localhost/docs
This code have been pytested and Tested many times so If you have any trouble please post it.
This Project helps me to learn more things in FastAPI and Sqlalchemy, I have learnt PostregreSQL and it's Function.
If you'd like to contribute to this project, feel free to fork it and submit a pull request with your changes. Contributions are welcome!