GithubHelp home page GithubHelp logo

booksftw / angular5-httpclient-demo Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kdechant/angular5-httpclient-demo

0.0 1.0 0.0 258 KB

Demo application showing how to use the HttpClient and Observables to make API calls from Angular 5

JavaScript 45.17% HTML 6.00% TypeScript 48.34% CSS 0.50%

angular5-httpclient-demo's Introduction

Angular 5 HTTP Client Demo App

This is a demo application showing how to use the HttpClient service and Observables in Angular 5.

For background on the topic of Angular HTTP requests, please see my blog posts:

https://www.metaltoad.com/blog/angular-2-http-observables-and-concurrent-data-loading

https://www.metaltoad.com/blog/angular-2-using-http-service-write-data-api

Note: This app uses the new and improved HttpClient service introduced in Angular 4.3. If you are using Angular 2 or Angular 4 v4.2 and below, see this older demo using the deprecated Http service.

What's in here

  • app.js - a simple Express app which acts as the back-end API.
  • src/app/ - this folder contains the Angular app
  • config/ - this folder contains webpack-related scripts

Running the app

To run this application, you need NodeJS and NPM installed on your system. Then, run the following commands from your command prompt:

npm install
npm start

This will transpile the TypeScript files, bundle everything using Webpack, and start the Node server. The app will be available at http://localhost:3000/

angular5-httpclient-demo's People

Contributors

kdechant avatar sanjitkumarsingh avatar angular-cli avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.