Convert Figma logo to code with AI

realworld-apps logoangular-realworld-example-app

Exemplary real world application built with Angular

5,579
3,432
5,579
9

Quick Overview

Error generating quick overview

Convert Figma logo designs to code with AI

Visual Copilot

Introducing Visual Copilot: A new AI model to turn Figma designs to high quality code using your components.

Try Visual Copilot

README

Angular Example App

Angular codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld spec and API.

RealWorld

This codebase was created to demonstrate a fully fledged application built with Angular that interacts with an actual backend server including CRUD operations, authentication, routing, pagination, and more. We've gone to great lengths to adhere to the Angular Styleguide & best practices.

How it works

A global documentation for the project is available at docs.realworld.show.

Getting started

Requires Bun.

git clone https://github.com/realworld-apps/angular-realworld-example-app.git
cd angular-realworld-example-app
bun run setup  # Init submodules + install dependencies
bun run start

Run bun run setup again after a git pull that updates the realworld submodule.

Building the project

Run bun run build to build the project. The build artifacts will be stored in the dist/ directory.

Functionality overview

The example application is a social blogging site (i.e. a Medium.com clone) called "Conduit". It uses a custom API for all requests, including authentication. You can view a live demo over at demo.realworld.show

General functionality:

  • Authenticate users via JWT (login/signup pages + logout button on settings page)
  • CRU* users (sign up & settings page - no deleting required)
  • CRUD Articles
  • CR*D Comments on articles (no updating required)
  • GET and display paginated lists of articles
  • Favorite articles
  • Follow other users

The general page breakdown looks like this:

  • Home page (URL: / )
    • List of tags
    • List of articles pulled from either Feed, Global, or by Tag
    • Pagination for list of articles
  • Sign in/Sign up pages (URL: /login, /register )
    • Uses JWT (store the token in localStorage)
    • Authentication can be easily switched to session/cookie based
  • Settings page (URL: /settings )
  • Editor page to create/edit articles (URL: /editor, /editor/article-slug-here )
  • Article page (URL: /article/article-slug-here )
    • Delete article button (only shown to article's author)
    • Render markdown from server client side
    • Comments section at bottom of page
    • Delete comment button (only shown to comment's author)
  • Profile page (URL: /profile/:username, /profile/:username/favorites )
    • Show basic user info
    • List of articles populated from author's created articles or author's favorited articles

Realworld Angular

This project may be too simple for getting a good understanding of the different ways an Angular project can be built. For a comprehensive understanding of how more complex Angular projects can be implemented, you may check the RealWorld Angular organization that is specialized in Angular development, currently managed by Gerome Grignon.

License

  • Project code: MIT License
  • Angular logo: The Angular logo is a trademark of Google LLC, used to indicate this project is built with Angular.