Get Started in 5 Minutes
Follow this guide to set up and run the Sushi Restaurant App locally. You’ll have a fully functional restaurant menu application running in no time.Install Dependencies
Install all required dependencies using your preferred package manager:
The app uses Angular 20, Ionic 8, and Capacitor 8. All dependencies will be automatically installed.
Start the Development Server
Launch the development server to run the app locally:The app will automatically open in your browser at
http://localhost:8100. You’ll see the restaurant menu with delicious seafood dishes.The
npm start command runs ng serve from the Angular CLI, which includes hot-reload for a smooth development experience.Explore the Menu
Once the app is running, you’ll see “El Faro del Mar” restaurant menu with six featured dishes:
- Ceviche de Pescado - Fresh fish ceviche with lime and red onion
- Cóctel de Camarón - Shrimp cocktail with special ketchup sauce
- Tacos de Pescado - Battered fish tacos with chipotle dressing
- Aguachile Verde - Raw shrimp in lime juice with serrano chile
- Filete al Mojo de Ajo - Garlic butter fish fillet with rice
- Pulpo Zarandeado - Grilled octopus with special marinade
Your First View
Here’s what happens when the app loads and displays the menu:src/app/home/home.page.ts
HomePage component fetches all menu items from the RegistrosServiceTs service when it initializes. Each item is a Registro object containing the dish name, photo, and ingredients.
Understanding the Menu Data
The app uses a simple service to manage menu items. Here’s how the data is structured:src/app/home/home.model.ts
id- Unique identifier for the dishnombre- Dish name in Spanishfoto- URL to the dish photoobservaciones- Array of ingredients or preparation notes
Next Steps
Now that you have the app running, explore these features:Project Structure
Learn how the app is organized
Components
Dive into the HomePage component
Services
Understand the data service layer
Styling
Customize the app’s appearance
Available Commands
Here are the key commands frompackage.json you’ll use during development:
| Command | Description |
|---|---|
npm start | Start the development server |
npm run build | Build the app for production |
npm run watch | Build with watch mode for development |
npm test | Run unit tests |
npm run lint | Lint the codebase |
Troubleshooting
Port 8100 is already in use
Port 8100 is already in use
If port 8100 is occupied, you can specify a different port:
Dependencies installation fails
Dependencies installation fails
Try clearing the npm cache and reinstalling:
Angular CLI not found
Angular CLI not found
Install the Angular CLI globally: