Giter Club home page Giter Club logo

app-generator / ecommerce-fastapi-stripe Goto Github PK

View Code? Open in Web Editor NEW
78.0 4.0 24.0 9.03 MB

FastAPI Stripe Sample - Soft UI Design (Free Sample) | AppSeed

Home Page: https://blog.appseed.us/fastapi-stripe-free-ecommerce/

License: MIT License

Python 0.87% CSS 17.21% JavaScript 1.00% SCSS 17.55% HTML 63.36% Dockerfile 0.01%
ecommerce fastapi fastapi-template fastapi-stripe stripe-fastapi-demo stripe-fastapi-example stripe-fastapi stripe-starter stripe-template fastapi-starter-template

ecommerce-fastapi-stripe's Issues

Product Page not accessible

Hello @barreraalexander

On the products index page, the links provided by the featured product are dead links

Note: Please mirror all features from Flask. In theory, if the user starts the Flask or FastAPI version using Docker, the behaviour should be identical.

Ty for taking a look.

image

ENV vars - All are optional

Hello @barreraalexander

All env variables are optional with defaults:

  • Debug = True
  • SECRET_KEY = random 16 chars
  • Stripe secrets = None (Null)
  • SERVER_HOST - localhost:8000 (default uvicorn PORT)

Also, when the stripe secrets are not provided the UI shows the product but informs the user using an alert.

Flask version has all these evolutions

image

Docker file with non-standard name

Hello @barreraalexander,

Regarding Docker, two files are provided:

  • docker-compose.yaml -> OK
  • docker-compose copy.yaml -> Not ok

Please rename the 2nd docker-compose YAML with a suggestive name.
Also might help to specify on README what exactly does compared to the simple set up.

Ty!

Stripe OAuth Flow

Hello @barreraalexander

Please document the set up flow for OAuth Stripe using this document.

Just the minimal steps and please specify also the required configuration on the Stripe platform.

Ty!

Stripe Flow is missing

Hello @barreraalexander

The Stripe Flow is not implemented.
The following routes are required in order to have an usable product:

  • /config - this should return the Stripe PUBLIC_KEY
  • /success this endpoint is hit when the payment is successful
  • /cancelled - callback route for rejected payments
  • /create-checkout-session/<path>/ handles the payment flow

Please start the Flask sample using the following test keys for Stripe:

STRIPE_PUBLISHABLE_KEY=pk_test_51HlWtGGLLd1X07VUPujufXrN8JHjn76lzLOZ16zjo895ffZCC4JwcAAipINEC0CVFxjFGmHr1YxRf96JbhPiUeVU00uhxqX2uL
STRIPE_SECRET_KEY=sk_test_51HlWtGGLLd1X07VUIwU3iPZAK9mGdR8GtwSUAAkkyoOl3KpE4BWyIU3BX4mAcofaRrTFQIh4jFPSJHHk1njpwKMC00q3tPjAe7

Let me know if you have questions.

Ty!

Docker execution is not successful

Hello @barreraalexander

On a fresh clone, the docker-compose up --build command is not successful:

The Docker setup should copy env.sample -> ENV or set the secrets in ENV

Note: take a look at the Flask version

Ty!

$ docker-compose up --build 

ERROR: Couldn't find env file: D:\work\repo-samples\sample-fastapi-stripe\.env

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.