How anaderwan/ctk-shop works
Project type and purpose
• CTK SHOP is a single-page, full-stack web application (React + TypeScript) that manages user authentication, stores, and items.
• It uses json-server (db.json) as a mock REST API backend and Vite as the build/dev tool.
File structure
• Top-level:
• index.html, package.json, vite.config.ts, tsconfig.* → build & config
• db.json → mock data store for json-server
• public/ → static assets
• src/ → application code
• src/main.tsx and src/App.tsx → entrypoint, routing, global layout
• src/components/ → domain feature subfolders:
• authentication/ → Login, Register
• items/ (and Items-folder) → CreateItem, ItemCard, ItemForm, ItemsList, ItemsType
• store/ → CreateStore, StoreCard, StoreForm, StoresList
• navbar-and-footer/ → navbar, footer
• toaster/ → error messages
• SCSS/CSS assets alongside components; Axios and React Router imported in code.
README for additional insights
• Tech stack: React, TypeScript, Bulma, SCSS, Axios, React Router, json-server.
• Features: user register/login, CRUD for stores&items.
Detail
• React Router as an overlay around the feature modules.