Git Product home page Git Product logo

fastapi-ecommerce's Introduction

Project

  • Name: Ecommerce
  • Language: Python 3.10
  • Framework: FastAPI

Project Details

This is a FastAPI bare-bones ecommerce app without an ordering feature. Why not have the ordering feature or other features? Well, the main aim of the project was to design permissions, filtering, modeling e.t.c as they are in real world companies. Any other feature that wasn't within the scope of learning advanced FastAPI implemention was termed as just adding aesthetic value. And by definition, most of it would have been easy to learn through FastAPI tutorials online. This project was to learn what you wouldn't find easily online but expected to grasp while in employment. Hopefully someday I'll create a tutorial for it.


Advanced features

Authentication/Permissions

  • Storing user credentials
  • Improving authentication speed using redis
  • Restricting CRUD actions based on user type

Filters and queries

  • The method used in querying is a slight improvement of what I found in the company I worked in.
  • I created a custom fastapi filter package to achieve advanced relationship models filtering.
  • This means that I was able to meet the same goals with much less code that was easier to understand.
  • The queries also use a DAO structure ensuring uniformity.

Project setup

  • Create a virtual environment
  • Install packages via poetry
  • Create database
  • Create and env. file with the varialbes defined in the Settings class found in app/core/config.py
  • In your virtual environment, run ´prestart.sh´ in the terminal.
  • And start the server by running ´run.sh´ in the terminal

fastapi-ecommerce's People

Contributors

waruingugi avatar

Stargazers

 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.