Coder Social home page Coder Social logo

fastcommerce's Introduction

FastCommerce

Welcome to the Fastcommerce Template! ๐Ÿš€ This template provides a robust foundation for building e-commerce applications using FastAPI, a modern and fast web framework for building APIs with Python 3.9+.

Getting Started

Prerequisites

  • Python 3.9+
  • Pip

Installation

  1. Clone the repository:

    git clone https://github.com/NotThorz/Fastcommerce.git
    cd Fastcommerce
  2. Create a virtual environment and install dependencies:

    python -m venv venv
    source venv/bin/activate   # On Windows: venv\Scripts\activate
    pip install -r requirements.txt
  3. Make sure you created the .env file using the .env.template as an example to connect the postgresSQL database

  4. Run the FastAPI application:

    uvicorn app.main:app --reload
  5. Access the APIs:

API Endpoints

Explore the various API endpoints for managing users, products, and orders as outlined below:

Users

  • Create User: POST /users/
  • Get User: GET /users/{id}
  • Update User: PUT /users/{id}
  • Delete User: DELETE /users/{id}

Authentication

  • Login: POST /login

Products

  • Get Products: GET /products/
  • Create Product: POST /products/
  • Get Product: GET /products/{id}
  • Update Product: PUT /products/{id}
  • Delete Product: DELETE /products/{id}
  • Mass Create Products: POST /products/mass-create

Orders

  • Get Orders: GET /orders/
  • Create Order: POST /orders/
  • Get Order: GET /orders/{id}
  • Update Order: PUT /orders/{id}
  • Delete Order: DELETE /orders/{id}

Default

  • Default route.

Feel free to customize and extend this template to meet the specific requirements of your e-commerce project. If you encounter any issues or have suggestions for improvements, please don't hesitate to open an issue or contribute to the repository.

Happy coding! ๐Ÿš€

fastcommerce's People

Contributors

notthorz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.