{"id":26562619,"url":"https://github.com/nuriadevs/store-backend-fastapi","last_synced_at":"2026-04-15T19:33:11.054Z","repository":{"id":283149384,"uuid":"950844399","full_name":"nuriadevs/store-backend-fastapi","owner":"nuriadevs","description":"Backend for an online store using FastAPI, PostgreSQL, Docker, and Mailpit for managing products, orders, users, and sending emails","archived":false,"fork":false,"pushed_at":"2025-03-18T19:18:10.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T20:28:03.559Z","etag":null,"topics":["docker","fastapi","mailpit","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nuriadevs.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-03-18T19:11:22.000Z","updated_at":"2025-03-18T19:20:35.000Z","dependencies_parsed_at":"2025-03-18T20:38:58.777Z","dependency_job_id":null,"html_url":"https://github.com/nuriadevs/store-backend-fastapi","commit_stats":null,"previous_names":["nuriadevs/store-backend-fastapi"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuriadevs%2Fstore-backend-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuriadevs%2Fstore-backend-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuriadevs%2Fstore-backend-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nuriadevs%2Fstore-backend-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nuriadevs","download_url":"https://codeload.github.com/nuriadevs/store-backend-fastapi/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244973810,"owners_count":20541025,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["docker","fastapi","mailpit","python"],"created_at":"2025-03-22T15:18:20.865Z","updated_at":"2026-04-15T19:33:11.009Z","avatar_url":"https://github.com/nuriadevs.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Evoltronic Store\nA project focused on an online shop for selling electronic products. You'll find management of products, orders, user authentication, and user registration.\n\n## Index\n\n1. [Features](#features)\n2. [Technologies](#technologies)\n3. [Project Structure](#project-structure)\n4. [Installation](#installation)\n5. [Usage](#usage)\n6. [Tests](#tests)\n7. [License](#license)\n8. [Contact](#contact)\n9. [Summary](#summary)\n\n\n## Features\n\n- **User Authentication**: Users can register, log in, email verification, and recover passwords.\n- **Product Management**: Administrators can add, edit, and delete products.\n- **Order Management**: Customers can place orders and view their order details.\n- **Product Categories**: Organizes products into categories for easy navigation.\n- **Email Sending with Mailpit**: Registration, confirmation via emails.\n\n\n## Technologies\n\nThis project was developed using the following technologies:\n\n- **Python**: version 3.13.0.\n- **FastAPI**: version 0.115.8\n- **PostgreSQL**:version 16.8\n- **Docker**: version 27.3.1\n- **SQLAlchemy**: version  2.0.38\n- **Pydantic**: version 2.10.6\n\n## Project Structure\n\nThe project follows a modular to ensure future scalability. Below is the main directory structure:\n\n``` python\n┣ 📂api\n┃ ┣ 📂routes\n┃ ┃ ┣ 📂admin\n┃ ┃ ┣ 📂auth\n┃ ┃ ┣ 📂client\n┃ ┃ ┗ 📂public\n┃ ┗ 📜api.py\n┣ 📂core\n┣ 📂dependencies\n┣ 📂middlewares\n┣ 📂models\n┃ ┣ 📂category\n┃ ┣ 📂order\n┃ ┣ 📂product\n┃ ┣ 📂user\n┃ ┗ 📜__init__.py\n┣ 📂responses\n┣ 📂schemas\n┣ 📂services\n┃ ┣ 📂category\n┃ ┣ 📂order\n┃ ┣ 📂product\n┃ ┣ 📜email.py\n┃ ┣ 📜user_profile.py\n┃ ┗ 📜user.py\n┣ 📂templates\n┃ ┗ 📂user\n┣ 📂utils\n┗ 📜main.py\n````\n\n## Installation\n\n## Prerequisites\n\nBefore getting started, make sure you have the following installed:\n\n- **Docker** \n- **Python** \u003e= 3.8\n- **PostgreSQL**\n\n### Installation Instructions\n\n1. Clone this repository:\n\n   ```bash\n   git clone https://github.com/nuriadevs/store-backend-fastapi.git\n   cd evoltronic_store\n2. Build and start the Docker containers:\n   ```bash\n   docker-compose up --build\n3. Run the migrations:\n\t```bash   \n\tdocker exec -it fastapi_app alembic upgrade head\n4. Open the browser to view the routes:\n\t```bash   \n\thttp://localhost:8000/docs\n5. Open the browser to receive the emails:\n\t```bash   \n\thttp://localhost:8025/\n## Usage\n### Postman\nIf you want to explore and test the API, you can use the Postman collection we’ve prepared. You can find it in the `api_docs/evoltronic.json` file. Enjoy it!\nLogin using the **admin** user provided in the migration\n \n### Register a new user (client)\n````\nPOST/users\n {\n  \"username\": \"Lolo\",\n  \"email\": \"lolo@example.com\",\n  \"password\": \"PassHashed_123!\"\n}\n````\n\n### Create a new product\n````\nPOST/products/create\n{\n  \"name\": \"Laptop\",\n  \"description\": \"Laptop Samsung ultra.\",\n  \"price\": 800.50,\n  \"stock\": 10,\n  \"category_id\": 1\n}\n````\n\n## Tests\n````\ndocker-compose exec app pytest\n````\n\n## Contact\nIf you have any questions send me an email.\n\n✉️ [Email](mailto:nuriadevs@gmail.com)\n\n## Summary\n- Run the migration to test the application with an admin user.\n- Don't forget to create your own .env file for the variables.\n- This project is under construction...can be improved.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuriadevs%2Fstore-backend-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnuriadevs%2Fstore-backend-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnuriadevs%2Fstore-backend-fastapi/lists"}