Built with Node, and Angular 22 with server-side rendering.
Browse products, filter by specs, add to cart, checkout, and manage orders.
- Node 24 or higher
- PostgreSQL 14 or higher
- Yarn 4 (via Corepack)
yarn installEdit config/amazon.json to set your database credentials and optional OAuth keys:
Note: OAuth is optional. Local email/password auth works without it.
yarn init:dbThis creates the node_amazon_dev database, sets up all tables, views, and indexes, then seeds it with sample laptop data.
yarn startThis builds the Angular app, starts the Express API on port 3000, and serves the Angular dev server on port 4200 with API requests proxied to Express.
| Command | Description |
|---|---|
yarn start |
Build + run Express API and Angular dev server |
yarn build |
Production build |
yarn serve |
Serve the production build (dist/server/server.mjs) |
yarn init:db |
Create and seed the database |
yarn lint |
Lint and auto-fix with ESLint |
{ "postgresql": { "user": "postgres", "password": "postgres", "host": "localhost", "database": "node_amazon_dev", }, "oauth": { "google": { "client": "YOUR_GOOGLE_CLIENT_ID", "secret": "YOUR_GOOGLE_SECRET", }, "facebook": { "client": "YOUR_FB_APP_ID", "secret": "YOUR_FB_SECRET" }, }, }