​​ Build a Cohort Enrolment and Payments Platform with Next.js, FastAPI, PostgreSQL and Redis
Business Requirement

Build a Cohort Enrolment and Payments Platform with Next.js, FastAPI, PostgreSQL and Redis

Group: Business Requirement

Product Category: Software Engineering

Sub Category: Full Stack Engineer

What's Included in the Project

Solution Code

Complete code, datasets and files for the project.

Interview Q&A

1 set · 79 questions on this project.

1:1 Mentorship

1 expert mentor to guide you.

Certificate

Awarded when you complete the project.

Estimated Building Hours

20 hours to build, at your own pace.

Everything above unlocks once you purchase and stays with you for life. The interview Q&A is about this project itself, not a general question bank for its tech stack.

Prerequisites

JavaScript basics Python basics SQL basics REST concepts production engineering basics cloud fundamentals testing and observability concepts

About this Product

Build a Cohort Enrolment and Payments Platform with Next.js, FastAPI, PostgreSQL and Redis is a full-stack business capability lab that builds Lanternway Enrol, an enrolment, payment, refund, and course access platform for a fictional online academy. A learner applies, a reviewer approves, a 15-minute seat hold starts, and the learner pays through a local Pay Simulator. Seats are never oversold under concurrent checkouts, and a repeated request or webhook never double-charges, double-enrols, or double-refunds. State changes are published through a transactional outbox, with retries and a dead letter queue. It runs locally, with Docker and Redis optional and no real payment gateway or card data.

With this product, you'll build a platform that can:

  • Serve a cached course and cohort catalogue with live seat counts and invalidation on change
  • Take applications with idempotency keys, and let reviewers approve or reject them
  • Hold a seat for 15 minutes on approval using a row lock, so 50 concurrent checkouts for 10 seats confirm exactly 10
  • Start checkout with a server-set price and run payments against a Pay Simulator with success, decline, duplicate, and slow outcomes
  • Verify signed webhooks with HMAC and a timestamp window, and process each provider event once
  • Grant and revoke course access from payment, renewal, and refund outcomes
  • Run monthly subscriptions with dunning retries before suspension
  • Compute refunds by day tier, with finance approval, admin approval for large refunds, and no self-approval
  • Write every state change and an outbox event in one transaction, relay it to Redis Streams or a database queue, and move failed events to a DLQ after 5 attempts
  • Keep running with no Redis, and recover with no lost events after a worker outage
  • Add role-based access, an audit log, masked JSON logs, metrics, health probes, and five Next.js screens

Building this product gives you hands-on experience in:

  • Concurrency control
  • Idempotent integration
  • Reliable messaging
  • Caching
  • Full-stack delivery

It uses Next.js, React, TypeScript, Tailwind, FastAPI, Pydantic, PostgreSQL, psycopg 3, Redis (optional), structlog, pytest, and Vitest, and runs on Windows, macOS, or Linux with Python and Node.

Why this product matters: payments and enrolment are where real systems fail, through double charges, oversold seats, and lost events. This lab teaches how to make every money-moving step safe to retry and explain any decision from the logs.

Interview Q&A Included

1 practice set bundled with this lab

These questions are about this project. They cover how the project is built and the decisions behind it, so you can talk about it confidently in an interview. They are not a general question bank for the tech stack it uses.

  • Enrollment and Payments Platform with Next.js and FastAPI Assessment

    Enrollment and Payments Platform with Next.js and FastAPI Assessment

    Category: Software Engineering Subcategory: Full Stack Engineering 79 questions

    This assessment checks what you learned while building Lanternway Enrol, a cohort enrolment and payments platform with Next.js, FastAPI and PostgreSQL. It has five groups: business scenario and rules, payments, …

Resources

1/4
Cohort Enrolment and Payments Platform Business Requirements
Cohort Enrolment and Payments Platform Business Requirements
| PDF

The complete Build a Cohort Enrolment and Payments Platform with Next.js, FastAPI, PostgreSQL and Redis Business Requirements Document (BRD) is available as a Read-Only attachment. It provides the complete project specification for Lanternway Enrol, including the business context, objectives, scope, requirements, use cases, and design expectations. Review the BRD carefully before starting the implementation.

Asset Contents:

  • Project overview and business objectives
  • In-scope and out-of-scope definitions
  • Functional and non-functional requirements
  • Business rules 
  • Key use cases and workflows
  • Actors, roles, data model, seed data, and API endpoints
  • Pay Simulator behaviour, run modes, and architecture decisions
  • Acceptance criteria and requirements traceability
Enroll to Access
Build a Cohort Enrolment and Payments Platform with Next.js, FastAPI, PostgreSQL and Redis

Topics

41% OFF
Next.js FastAPI PostgreSQL

Skills

Next.js FastAPI PostgreSQL Payment State Machines Idempotent Payments Transactional Outbox Cache Invalidation Observability

Languages

English

Level

Advance

Business Domain

Education Enrollment and Payments

$10.00 $17.00
Includes 1 Interview Q&A set

Labs • Projects • Practice

Similar Products

> more hands-on labs picked for you_

Expert Guidance

Similar Services

1:1 help from industry experts who can guide you through labs like this one.

Finding the best experts for you...

Learner Feedback

Top User Reviews

Loading reviews...