Quick Start
Create an AngularLynx app, open it in your browser, then run it on a phone. This takes about five minutes.
What you need
- Node.js 22.12 or newer. Check with
node --version. - Optional: a phone (iPhone or Android) or a simulator, to see the app as a real native app.
You don't need the Angular CLI installed globally. The project brings its own copy.
1. Create the app
When it asks "Would you like to add Tailwind CSS with Lynx preset?", answer Yes. The tutorial and the examples use Tailwind.
The command takes a minute or two. It runs three steps for you:
ng newcreates a standard Angular project.ng add @blotch/angular-lynxconverts that project into a Lynx app.npm installinstalls the dependencies.
2. Start the dev server
npm start runs ng serve. After the first build, the terminal shows a large QR code and a few links:
Your addresses will differ. Leave the server running.
3. Open it in your browser
Open the Preview link, but replace the IP address with localhost:
You should see your project's name and the line "Edit src/app/app.ts to get started".
This is the web preview: Lynx's web renderer drawing your app in the browser. It's the fastest way to work, and its layout matches the phone closely.
The preview only runs on a secure origin, and localhost is one. On an http://192.168… address it fails with "crypto.randomUUID is not a function".
4. Open it on a phone
To run your app as a native app, install Lynx Explorer. It's Lynx's development app: it downloads your app from the dev server and runs it.
- Install Lynx Go from Google Play. It's a community build of Lynx Explorer. Or install the official APK from Lynx's releases.
- Connect the phone to the same Wi-Fi as your computer.
- In the app, scan the QR code in your terminal.
You should see the same screen as in the browser, drawn by the phone's own UI controls.
5. Make a change
- In Lynx Explorer, open Settings and turn on Lynx DevTool. This lets the dev server reload the app when you save.
- Open
src/app/app.tsand change the line "Edit src/app/app.ts to get started". - Save the file.
The browser and the phone both update within a second or two.
Check that Lynx DevTool is on in Lynx Explorer's settings. Without it, the app keeps showing the old code until you open the link again.
What's in the project
ng add changed only a few files from a standard ng new project:
These are the commands you'll use most. Prefix them with npx (npx ng build), or install the CLI globally with npm install -g @angular/cli:
Next steps
- Tutorial: Build a todo app: learn elements, styling, events and signals step by step.
- Coming from web Angular: what's different, and which Angular features work.
- How a Lynx app runs: what the QR code, the bundle and Lynx Explorer are.
