Die Boycott App ermöglicht Nutzern, Produkte und deren Hersteller zu dokumentieren und zu bewerten, um informierte Kaufentscheidungen zu treffen.
- Uninstalled Express.
- Installed Next.js as described in the course book.
- Updated
package.jsonto include Next.js, React, and TypeScript dependencies and scripts. - Added
tsconfig.jsonfor TypeScript configuration. - Moved all template files to the
componentsandpagesdirectories according to Next.js conventions. - All routes and pages are now handled by Next.js.
- Development: Use
npm run devto start the Next.js development server.
Dockerfile:
- Changed
WORKDIRto set the working directory for the app. - Added
npm run buildto build the Next.js app during the build stage.
Docker Compose:
- Removed volumes from the
applicationservice to prevent source code from overwriting the build.