Example Angular 1.5+ (ES6 + Components) codebase that adheres to the RealWorld spec and API.
This project started as a fork of gothinkster/angularjs-realworld-example-app and has been incrementally migrated to React (page by page) while keeping AngularJS as the shell/router.
Links:
- Demo application: angularjs.realworld.io
- Vercel-hosted app (forked and migrated: new folder structure + Settings in React): angularjs-realworld-example-app.vercel.app
- Clone repo
npm installnpm run dev
- AngularJS is still responsible for the shell/router (header, footer, and routing).
- Pages are being migrated to React one by one. See
docs/MIGRATION_REACT.mdfor details. - The Settings page has already been migrated to React:
Additional changes in this fork (high level):
- Build system migrated from Gulp/Browserify to Vite.
- AngularJS DI safety strengthened with explicit
$injectannotations andngInjectusage. - Template caching is generated at build time via
scripts/generate-templates.js. - Mixed AngularJS + React setup with React pages mounted inside the Angular shell.
For convenience, we have a live API server running at api.realworld.show/api for the application to make requests against. You can view the API spec here which contains all routes & responses for the server.
The source code for the backend server (available for Node, Rails and Django) can be found in the main RealWorld repo.
If you want to change the API URL to a local server, set VITE_API_URL (see .env.example) or edit src/config/app.constants.js and change api to the local server's URL (i.e. http://localhost:3000/api).
- The app uses Vite for development and production builds.
- AngularJS templates are generated into
src/config/app.templates.jsviascripts/generate-templates.jsonnpm run devandnpm run build.
- Push this repo to GitHub.
- Create a new project in Vercel and import the repo.
- Set environment variable
VITE_API_URLto your API base URL (example:https://api.realworld.show/api). - Deploy.
Build settings:
- Framework preset: Vite
- Build command:
npm run build - Output directory:
dist


