A simple, SEO-focused, full-stack e-commerce test application
This is a Next.js project bootstrapped with create-next-app.
First, run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
Install docker - get docker
docker build -t tech-cart .docker run -p 4000:4000 tech-cartOpen http://localhost:4000 with your browser to see the result.
For optimal SEO performance, SSR (Server-Side Rendering) and SSG (Static Site Generation) approaches were utilized instead of CSR (Client-Side Rendering).
To simplify the setup, manual hydration on the client side (e.g., using async state managers like React Query or SWR) was omitted, although implementing it could enhance the user experience.
A RESTful API was created using Next.js route handlers. However, since we leverage Server Components SC, API routes are unnecessary
10 hours 👨🏻💻
- Finish pagination
- Accessibility considerations
- Unit tests for key components