Copied.
Back to Home
White

NoCap Internet Shop – React & FastAPI

Published on March 2, 2025

Developing the NoCap shop was an exciting challenge. This was my first time building a full-fledged React-based online store from scratch, integrating backend logic with FastAPI, and ensuring a seamless shopping experience.

NoCap Shop Homepage

Technologies and Frameworks

Component Technology Used
Frontend React + Vite
Backend FastAPI (Python)
Database PostgreSQL
Payments Stripe
Reverse Proxy Nginx

UI/UX Design Decisions

Product Card Design

The product cards are simple and user-friendly, showing the product image, title, price, and an “Add to Cart” button for a smooth purchasing experience.

NoCap Product Card

Filtering and Sorting

React manages state-based filtering, allowing users to sort products by category, price, or name dynamically.

Product Recommendation Algorithm

Using collaborative filtering, the platform suggests products based on past user interactions, helping customers discover relevant items.

Stripe Payment Integration

The backend creates a checkout session via the Stripe API. The frontend then redirects users to a secure Stripe-hosted page. After payment, users are redirected back to the site.

Performance Optimization

Backend Setup

Install Dependencies

pip install -r backend/requirements.txt

Run the Application

uvicorn backend.main:app --reload --host 0.0.0.0 --port 8000

API Endpoints

Endpoint Method Description
/caps GET Get all caps
/cap/{cap_id} GET Get cap by ID
/add_cap POST Add a new cap
/create-checkout-session POST Create a Stripe checkout session

Frontend Setup

Install Dependencies

npm install

Run Development Server

npm run dev --host --port 5173

Build for Production

npm run build
NoCap Shopping Cart

My Recommendations

Conclusion

The NoCap shop was a great learning experience, from setting up a full-stack e-commerce platform to handling payments and optimizing performance. The combination of React, FastAPI, and PostgreSQL provides a scalable and efficient solution. If you’re interested in building a similar platform, let’s connect!

Japalandia work abroad Landing Page

Japalandia home section with Call To Action Button

Football Academy site example

joksglobalsport.com football academy hero section

Model Agency site example

VirginCourtesans.com model agency gallery