Welcome to the "Intro to Hashbrown & Angular" workshop! In it, you will learn how to:
- Create simple chatbots
- Expose Angular services to LLMs
- Render generative user interfaces
- Node.js (v22 or higher) and npm installed (we recommend using nvm to manage Node versions)
You will need an OpenAI API key to complete this particular workshop. Hashbrown supports other large-language models, including Google's Gemini models and Writer. However, the prompts we explore in this exercise will be optimized for OpenAI's models.
To get an API key, follow these steps:
- Sign up for an account at OpenAI Platform
- Load it with a balance (you won't need more than $1 for this workshop)
- Generate an API key
-
Clone the repository:
git clone https://github.com/liveloveapp/hashbrown-angular-intro.git cd hashbrown-angular-intro -
Install and switch Node.js versions:
nvm install nvm use
-
Install dependencies:
npm install
-
Copy the example environment file:
cp .env.example .env
-
Open
.envand set your API key:OPENAI_API_KEY=your_api_key -
Run the server in a terminal prompt: and frontend application:
npx nx serve smart-home-server
-
Run the client in a separate terminal tab or window:
npx nx serve smart-home
Verify the app loads at
http://localhost:4200.