Skip to content

gyasistory/friendshq-workshop

 
 

Repository files navigation

FriendsHq

This is an Angular workshop using TypeScript. It attempts to demonstrate creating a simple web application.

The constructs that we see being employed in this workshop are

  • Creating Angular components
  • Creating component hierarchies
  • Using the Angular style guide for naming and project layout
  • @Inputs and @Outputs
  • Services
  • Dependency Injection
  • Ajax using Http and Observables
  • Smart vs. Dumb components
  • Routes, routing, and the router-outlet
  • Forms (template-driven and reactive)
  • Testing

Prerequisites

  • Download and install node per this
  • It is preferred you use yarn — Installation instructions can be found here
  • Angular Cli - You will find instructions here

Optional (but highly recommended)

Getting started

First git-clone or download this repository (Though it's preferred you clone)

Then open a terminal, cd to the directory where you cloned this repository.

Make sure node/npm are in your path!

yarn install # or npm install

Testing the installation

Open two terminals. In both cd to the directory where you cloned this repository.

In the first one, run

yarn run server # or npm run server

You should see something to the effect of

> friends-hq@0.0.0 server /Users/raju/Documents/presentations/Angular-with-TypeScript-Workshop/friendsHq
> json-server --watch server/api/db.json


  \{^_^}/ hi!

  Loading server/api/db.json
  Done

  Resources
  http://localhost:3000/friends

  Home
  http://localhost:3000

  Type s + enter at any time to create a snapshot of the database
  Watching...

In the second terminal run

ng serve

Once the console is settled, visit http://localhost:4200/ and you should see a http://localhost:4200/ with followed by the Angular Logo.

You are all set!

Credits

This project is inspired by Monica.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 67.1%
  • JavaScript 17.6%
  • HTML 14.5%
  • CSS 0.8%