Skip to content
0:00 / 0:00

#ashframework#phoenix#elixir

Stop Building APIs: Generate TypeScript from Ash

Code and Stuff

6.6K subscribers • 20 videos on Hallway

YouTube
  • Recommended by 1 person: 1 in engineering communities.
  • Linked in the descriptionChristianAlexander/ash_typescript_demo
  • May be out of date. The tools, versions or practices it shows have likely moved on.

Intermediate. Assumes working knowledge.

8.7K views1 year ago1 recommendation

Web developmentProgramming languagesElixir and ErlangTypeScriptReact

A tutorial on using Ash TypeScript to automatically generate TypeScript client code from Ash resources for a React frontend.

In this video, I explore Ash TypeScript, a new library that automatically generates TypeScript client code from your Ash resources. We'll build a stock explorer app using SEC data to demonstrate how this eliminates the complexity of designing APIs and building client libraries when you need JavaScript frontends for your Phoenix apps. What's covered: - What is Ash / how do you use it? - Creating and seeding a database - Building a LiveView interface with pagination and infinite scrolling - Adding React to a Phoenix project - Installing and configuring Ash TypeScript with automatic code generation - Implementing TanStack Query / Table / Virtual for high-performance data grids - Comparing LiveView with React for large dataset performance Links - Demo repository: github.com/ChristianAlexander/ash_typescript_demo - Ash TypeScript documentation: hexdocs.pm/ash_typescript - SEC datasets: sec.gov/search-filings/edgar-search-assistance/accessing-edg… - Ash Framework: ash-hq.org Timestamps What are we doing? - Start building - Ash domain - Exchange resource - Company resource - Seed the data - LiveView UI - LiveView streams - Ash pagination - LiveView pagination - Adding React to Phoenix - Set up Ash TypeScript - Calling from React - Room for improvement - Adding TanStack - TanStack Virtual -

Why it's here

1 person recommends this

u/GiraffeFireAlchemistin r/elixir • Recommends

Ash TypeScript: Rich Phoenix Frontends, Simplified