This repository contains the frontend for SmartCooking.
For a seamless development experience, we recommend using a DevContainer. This ensures all dependencies are correctly installed without requiring contributors to set up their local environment manually.
- Docker
- Visual Studio Code with the Dev Containers extension
-
Open this repository in Visual Studio Code.
-
If you have the Dev Containers extension installed, Visual Studio Code will prompt you to reopen the project inside the container.
- If not prompted, open the Command Palette (
Ctrl + Shift + PorCmd + Shift + Pon macOS) and run "Reopen in Container".
- If not prompted, open the Command Palette (
-
The container will set up automatically, installing dependencies and preparing the environment.
-
Start the development server with:
npm run dev
Now you're ready to develop the frontend in a standardized environment!
If you prefer to develop locally without a DevContainer, follow these steps:
-
Install the dependencies:
# npm npm install # pnpm pnpm install # yarn yarn install # bun bun install
-
Start the development server on
http://localhost:3000:# npm npm run dev # pnpm pnpm dev # yarn yarn dev # bun bun run dev
Look at the Nuxt documentation to learn more.
To set up the frontend locally using Docker, follow these steps:
-
Build the Docker Image:
docker build -t smartcooking-nginx . -
Run the Docker Container:
docker run -d --name Smart-Cooking_Frontend -p 8080:80 smartcooking-nginx
-
Access the Site: Open your browser and visit
http://localhost:8080/.