• Stars
    star
    5,231
  • Rank 7,912 (Top 0.2 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created about 8 years ago
  • Updated 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Exemplary real world application built with Angular

RealWorld Frontend Build Status

Angular Example App

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

ย ย 

Demoย ย ย ย 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.

Additionally, there is an Angular 1.5 version of this codebase that you can fork and/or learn how to recreate.

How it works

We're currently working on some docs for the codebase (explaining where functionality is located, how it works, etc) but the codebase should be straightforward to follow as is. We've also released a step-by-step tutorial w/ screencasts that teaches you how to recreate the codebase from scratch.

Making requests to the backend API

For convenience, we have a live API server running at https://conduit.productionready.io/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, simply edit src/environments/environment.ts and change api_url to the local server's URL (i.e. localhost:3000/api). Please note you will probably need to use a proxy in order to avoid Cross-Origin Resource (CORS) issues. (more info: Proxying to a backend server )

Getting started

Make sure you have the Angular CLI installed globally. We use Yarn to manage the dependencies, so we strongly recommend you to use it. you can install it from Here, then run yarn install to resolve all dependencies (might take a minute).

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Building the project

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the -prod flag for a production build.

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 https://angular.realworld.io

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

Brought to you by Thinkster

More Repositories

1

realworld

"The mother of all demo apps" โ€” Exemplary fullstack Medium.com clone powered by React, Angular, Node, Django, and many more
TypeScript
80,404
star
2

react-redux-realworld-example-app

Exemplary real world application built with React + Redux
JavaScript
5,569
star
3

vue-realworld-example-app

An exemplary real-world application built with Vue.js, Vuex, axios and different other technologies. This is a good example to discover Vue for beginners.
JavaScript
4,065
star
4

node-express-realworld-example-app

TypeScript
3,591
star
5

golang-gin-realworld-example-app

Exemplary real world application built with Golang + Gin
Go
2,504
star
6

aspnetcore-realworld-example-app

ASP.NET Core backend implementation for RealWorld
C#
1,935
star
7

django-realworld-example-app

Python
1,611
star
8

spring-boot-realworld-example-app

Example Spring codebase containing real world examples (CRUD, auth, advanced patterns, etc) that adheres to the RealWorld API spec.
Java
1,304
star
9

react-mobx-realworld-example-app

Exemplary real world application built with React + MobX
JavaScript
1,248
star
10

laravel-realworld-example-app

Exemplary real world backend API built with Laravel
PHP
1,194
star
11

flask-realworld-example-app

Exemplary real world JSON API built with Flask (Python)
Python
898
star
12

elixir-phoenix-realworld-example-app

Exemplary real world application built with Elixir + Phoenix
Elixir
892
star
13

kotlin-spring-realworld-example-app

Kotlin
455
star
14

angularjs-realworld-example-app

Exemplary real world application built with Angular 1.5 + ES6
JavaScript
454
star
15

rails-realworld-example-app

Ruby
430
star
16

realworld-starter-kit

Starter kit for new RealWorld framework implementations
429
star
17

slim-php-realworld-example-app

Exemplary real world application built with Slim
PHP
427
star
18

swift

A better way to learn swift.
275
star
19

koa-knex-realworld-example

JavaScript
240
star
20

ember-realworld

Ember.js RealWorld Implementation
JavaScript
183
star
21

aurelia-realworld-example-app

Exemplary real world application built with Aurelia
JavaScript
183
star
22

web-components-realworld-example-app

Exemplary real world application built with Vanilla JS Web Components
JavaScript
178
star
23

node-express-prisma-v1-official-app

Official real world application built with Node + Express + Typescript + Prisma
TypeScript
155
star
24

scala-play-realworld-example-app

Exemplary real world application built with Scala 2.13 & Play
Scala
154
star
25

gcp-datastore-cloud-functions-realworld-example-app

Serverless GCP Cloud Functions + Datastore implementation of RealWorld Backend
JavaScript
145
star
26

moleculer-node-realworld-example-app

Exemplary real world application built with Moleculer
JavaScript
103
star
27

apprun-realworld-example-app

Exemplary real world application built with AppRun
TypeScript
103
star
28

cakephp-realworld-example-app

PHP
103
star
29

clojurescript-reframe-realworld-example-app

Exemplary real world application built with ClojureScript + re-frame
Clojure
102
star
30

fsharp-realworld-example-app

Exemplary real world application built with F#
F#
94
star
31

hapijs-realworld-example-app

Real World Hapi.JS + Mongoose backend implementations
JavaScript
78
star
32

clojurescript-keechma-realworld-example-app

Exemplary real world application built with ClojureScript & Keechma
Clojure
72
star
33

reasonml-realworld-example-app

Exemplary real world application built with ReasonML
Reason
59
star
34

conduit-bootstrap-template

HTML
34
star
35

dojo-realworld-example-app

Exemplary real world application built with Dojo2
TypeScript
30
star
36

angularfire-slack

JavaScript
27
star
37

QEWD-realworld-example-app

JavaScript
22
star
38

crizmas-mvc-realworld-example-app

Exemplary real world application built with Crizmas MVC (React)
JavaScript
18
star
39

express-prisma-official-app

TypeScript
17
star
40

jswiki

The wiki for modern Javascript terminology
HTML
13
star
41

conduit-angularjs-final

JavaScript
10
star
42

conduit-django

Python
9
star
43

conduit-sass

HTML
8
star
44

test-routes

JavaScript
6
star
45

thinkdown

Preview markdown as it appears on https://thinkster.io
CSS
5
star
46

conduit-react-client-final

JavaScript
4
star
47

conduit-rails4-api-final

Ruby
4
star
48

realworld-api-action

GitHub Action running a Postman collection to test the compliance of a backend implementation of RealWorld specs
JavaScript
4
star
49

course-boilerplate

3
star
50

mean-stack-tutorial

3
star
51

realworld-e2e-tests

E2e test suite for RealWorld demo
JavaScript
3
star
52

api-realworld

TypeScript
2
star
53

gothinkster.github.io

HTML
2
star
54

conduit-rails4

Ruby
2
star
55

conduit-rails

Ruby
2
star
56

conduit-angular

HTML
1
star
57

thinkster-author

Authoring site for Thinkster.io Authors
1
star
58

blog

Thinkster blog
1
star
59

imperial

JavaScript
1
star
60

conduit-api

TypeScript
1
star
61

transactional

1
star
62

realworld-tribe-angular-app

HTML
1
star
63

realworld-tribe-nestjs-app

TypeScript
1
star
64

realdworld-docs

1
star