A Phoenix framework app with React and TypeScript as its frontend.
Note
This repo is archived, but the philosophy here still stands. If you want to replicate this setup on any Web framework, give my blogpost a read here.
- Install dependencies with
mix deps.get - Create and migrate your database with
mix ecto.setup - Start the Phoenix endpoint with
mix phx.serveror inside IEx withiex -S mix phx.server
Now you can visit localhost:4000 from your browser.
For developing the frontend:
cdinto the frontend directory- Install all dependencies with
npm install - Start the dev server with
npm run dev
Now you can visit localhost:3000 from your browser.
To understand how the entire setup works, read this detailed blogpost where I explain it in detail.
