Case file № 02 / 03E-Commerce

STOCKROOM

Bilingual E-Commerce Platform for Pre-owned Furniture & Appliances in Japan

An online store and buying-service platform for a Japanese retailer of quality pre-owned furniture and home appliances. Customers can browse stock by category, order with clear shipping costs, or sell their own items, all in Japanese or English.

  • online-store
  • inventory
  • multilingual
STOCKROOM
STOCKROOM, e-commerce project by CodeLab
AIndustry
Retail & E-Commerce
BMarket
Japan
CLanguages
Japanese & English
DArchitecture
Full-stack Next.js monolith
  • Next.jsFrontend & Backend
  • Prisma ORMORM
  • PostgreSQLDatabase
  • ZodValidation
  • shadcn/uiUI Components
  • Monolithic ArchitectureArchitecture
  • Next.jsFrontend & Backend
  • Prisma ORMORM
  • PostgreSQLDatabase
  • ZodValidation
  • shadcn/uiUI Components
  • Monolithic ArchitectureArchitecture

§ 01 — Background

About the client

STOCKROOM is a Japanese retail business that buys and sells pre-owned furniture and home appliances, from sofas, dining sets and lighting to refrigerators and washing machines. Alongside its showroom, the business needed an online store that customers could trust and staff could keep up to date.

Besides selling, STOCKROOM also buys items from customers, in-store or through on-site visits, and offers a collection service. The platform had to explain these services clearly, accept requests by email, LINE or phone, and show delivery costs upfront, since large furniture is priced by size and destination.

Because the business operates under Japanese law, the site also includes its Terms & Conditions, Privacy Policy and the legally required notice under the Act on Specified Commercial Transactions.

§ 02 — Technology stack

Built with the right tools, not the trendy ones.

6 components, each picked for the job it does in STOCKROOM, and nothing added for the sake of a buzzword.

06

Components

09

Features

zsh — stockroom

codelab@stockroom $ codelab inspect --stack

Resolving 6 components…

  • Next.jsFrontend & Backend
  • Prisma ORMORM
  • PostgreSQLDatabase
  • ZodValidation
  • shadcn/uiUI Components
  • Monolithic ArchitectureArchitecture

✔ Build ready · 6 components resolved

$

§ 03 — Key features

What STOCKROOM does

9capabilities
shipped

  1. 01

    Category & Sub-category Browsing

    Products organized into categories such as Bedding, Sofa, Dining, Lights and Home Appliances, with detailed sub-categories like refrigerators by door count or washing machines by type.

  2. 02

    Product Listing & Sorting

    Clean product grids with model names, photos and prices in yen, plus sorting by price to help customers compare quickly.

  3. 03

    Shopping Cart & Checkout

    A quick cart drawer and a full order summary showing subtotal, shipping, discount and total payable before checkout.

  4. 04

    Buying Service

    Customers can sell their items through in-store purchase or on-site purchase, and apply by email, LINE or phone.

  5. 05

    Collection Service

    A dedicated page explaining how STOCKROOM collects unwanted furniture and appliances from customers.

  6. 06

    Transparent Shipping Fees

    Delivery fee tables for furniture delivery service, calculated by package size, weight and destination prefecture.

  7. 07

    Japanese & English

    The full site, including categories and product information, can be switched between Japanese and English.

  8. 08

    News & Announcements

    An information board on the home page for store holidays, campaigns and opening announcements.

  9. 09

    Search & Legal Pages

    Site-wide product search, plus Terms & Conditions, Privacy Policy and the Specified Commercial Transactions notice.

§ 04 — Technical highlights

How STOCKROOM is engineered

Scroll down the pipeline, layer by layer.

  1. Layer 01

    Full-stack Next.js Monolith

    Frontend pages and backend logic live in a single Next.js codebase, keeping development, deployment and maintenance simple for a growing retail business.

  2. Layer 02

    Type-safe Data with Prisma

    Prisma ORM on top of PostgreSQL gives a clear, typed schema for products, categories, carts, orders and shipping rates, reducing data errors.

  3. Layer 03

    Validation with Zod

    Every form and request, from checkout to buying-service applications, is validated with Zod schemas so bad data never reaches the database.

  4. Layer 04

    Consistent UI with shadcn/ui

    Accessible, reusable shadcn/ui components keep menus, drawers, tables and forms consistent across the whole store.

  5. Layer 05

    Bilingual Content Model

    Content and category names are stored for both Japanese and English, so the language switch covers the whole shopping experience.

  6. Layer 06

    Size-based Shipping Rates

    Shipping fees are modeled by package size, weight and prefecture, so customers see accurate delivery costs for large items.

Have a similar project in mind? Start your project, in Japanese or English.