Skip to content

danielcregg/example-coding-lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Example Coding Lab

Ionic Angular JavaScript License: MIT Last Commit

A guided coding lab for building an AI Recipe Generator app with Ionic, Angular, and Google Gemini AI. Students follow step-by-step instructions to create a mobile-ready application that generates recipes from images of baked goods.

Overview

This repository contains a structured coding lab designed for teaching mobile app development with AI integration. The lab walks students through building a complete Ionic/Angular application that uses Google's Gemini AI to analyse images of baked goods and generate corresponding recipes. The exercise covers component creation, service architecture, image handling, and AI API integration.

Features

  • Step-by-step guided lab instructions with TODO hints for students
  • Mermaid architecture diagrams illustrating component interaction and data flow
  • Ionic/Angular standalone component setup with Google Generative AI integration
  • Service extraction pattern teaching separation of concerns
  • Image selection, Base64 conversion, and AI-powered recipe generation
  • Common issues and troubleshooting guide included

Prerequisites

Getting Started

Installation

git clone https://github.com/danielcregg/example-coding-lab.git
cd example-coding-lab

Usage

Open the my-coding-lab.md file to follow the lab instructions. The lab guides you through:

  1. Creating a new Ionic project
  2. Installing the Google Generative AI package
  3. Building the UI with Ionic components
  4. Integrating Google Gemini AI for recipe generation
  5. Extracting logic into an Angular service

To begin the lab project itself:

ionic start w7-lab-ai blank --type=angular
cd w7-lab-ai
npm install @google/generative-ai
ionic serve

Tech Stack

Category Technology
Framework Ionic
UI Framework Angular (Standalone Components)
AI Service Google Gemini AI
Language TypeScript, HTML
Package @google/generative-ai

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

A guided coding lab for building an AI Recipe Generator app with Ionic, Angular, and Google Gemini AI

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors