docs/code-samples/eventing/bookstore-sample-app/solution/frontend
dependabot[bot] ef160d2568
Bump micromatch (#6135)
Bumps [micromatch](https://github.com/micromatch/micromatch) from 4.0.5 to 4.0.8.
- [Release notes](https://github.com/micromatch/micromatch/releases)
- [Changelog](https://github.com/micromatch/micromatch/blob/master/CHANGELOG.md)
- [Commits](https://github.com/micromatch/micromatch/compare/4.0.5...4.0.8)

---
updated-dependencies:
- dependency-name: micromatch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-10-16 07:00:22 +00:00
..
app Sample App: Code Clean up (#5948) 2024-05-29 13:48:17 +00:00
client Sample App: Code Clean up (#5948) 2024-05-29 13:48:17 +00:00
config fix: Update the image to use the one from official knative release build (#6054) 2024-07-16 17:37:29 +00:00
public/images Sample App: Code Clean up (#5948) 2024-05-29 13:48:17 +00:00
.eslintrc.json Sample App: Code Clean up (#5948) 2024-05-29 13:48:17 +00:00
.gitignore Sample App: Code Clean up (#5948) 2024-05-29 13:48:17 +00:00
Dockerfile Sample App: Code Clean up (#5948) 2024-05-29 13:48:17 +00:00
README.md Sample App Tutorial Page Compilation (#6007) 2024-06-26 07:42:43 +00:00
next.config.mjs Sample App: Code Clean up (#5948) 2024-05-29 13:48:17 +00:00
package-lock.json Bump micromatch (#6135) 2024-10-16 07:00:22 +00:00
package.json Bump next (#6125) 2024-09-18 05:28:42 +00:00
postcss.config.js Sample App: Code Clean up (#5948) 2024-05-29 13:48:17 +00:00
tailwind.config.ts Sample App: Code Clean up (#5948) 2024-05-29 13:48:17 +00:00
tsconfig.json Sample App: Code Clean up (#5948) 2024-05-29 13:48:17 +00:00

README.md

Getting Started

This app use Next.js and TailwindCSS as main packages. Use this command to install all dependencies:

npm install

To run application, use:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000{:target="_blank"} with your browser to see the result.

Project Structures

  • app/: Contains the main layout, page, and global styling.
  • client/: Contains components and pages used in the application.
  • public/images/: Contains image files.
  • next-env.d.ts, next.config.mjs, package-lock.json, package.json, postcss.config.js, tailwind.config.js, tsconfig.json: Configuration files for Next.js, Tailwind CSS, and TypeScript.

Containerize Application

This repository contains a Next.js application that utilizes next-themes and Tailwind CSS. This README file provides instructions on how to containerize the application using Docker.

Prerequisites

  • Docker installed on your machine. You can download and install Docker from here{:target="_blank"}.

Dockerization Steps

  1. Clone this repository to your local machine.
  2. Navigate to the root directory of the cloned repository.

Building the Docker Image

Run the following command to build the Docker image:

docker build -t frontend .

Running the Docker Container

Once the image is built, you can run a container using the following command:

docker run -d -p 3000:3000 frontend