feat: add Docker support and implement movie detail and playback pages

This commit is contained in:
thanhvudaynee
2026-05-17 21:01:33 +07:00
parent 8832b620f2
commit 69f6c90eda
9 changed files with 361 additions and 68 deletions
+32 -1
View File
@@ -58,7 +58,7 @@ npm run dev
The app will usually be available at:
```text
http://localhost:3000
http://localhost:3002
```
## Production Build
@@ -75,6 +75,36 @@ Preview the production build locally:
npm run preview
```
Run the production server after building:
```bash
npm run start
```
The production server listens on port `3002` by default.
## Docker
Build and run with Docker Compose:
```bash
docker compose up -d --build
```
The container exposes the app at:
```text
http://localhost:3002
```
Stop the container:
```bash
docker compose down
```
The Compose service is named `kr-phim` and maps host port `3002` to container port `3002`.
## Available Routes
- `/` - Home page with hero carousel and movie rows.
@@ -101,6 +131,7 @@ If one source is unavailable, the list endpoint still returns data from the othe
npm run dev # Start Nuxt development server
npm run build # Build for production
npm run preview # Preview the production build
npm run start # Start the built Nitro server
npm run generate # Generate a static build when supported
```