# Angular2-RESTfulService **Repository Path**: mirrors_un33k/Angular2-RESTfulService ## Basic Information - **Project Name**: Angular2-RESTfulService - **Description**: Example of Angular 2 calling into a RESTful service - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-26 - **Last Updated**: 2026-11-30 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Angular 2 RESTful Service Example This project provides a simple look at getting started using Angular 2 to call into a RESTful service. Simply clone the project or download and extract the .zip to get started. ## Angular 2 Concepts Covered * Using TypeScript classes and modules * Modules are loaded with System.js * Using Custom Components * Using the Http object for Ajax calls along with RxJS observables * Performing GET and PUT requests to the server * Working with Angular 2 service classes for Ajax calls * Using Angular 2 databinding and built-in directives ## Software Requirements To Run Locally (there's a Docker option below as well) * Node.js 4.0.0 or higher * MongoDB 3.2 or higher ### Running the Application Locally 1. Install Node.js and MongoDB on your dev box 1. Execute 'mongod' to start the MongoDB daemon if it's not already running 1. Install Nodemon: `npm install nodemon -g` 1. Open `config/config.development.json` and change the host from `mongodb` to `localhost` 1. Run `npm install` to install app dependencies 1. Run `npm start` to compile the TypeScript and start the server 1. Browse to http://localhost:3000 ## Running the Application with Docker 1. Install Docker for Mac/Windows or Docker Toolbox - https://www.docker.com/products/overview 1. Open a command prompt window 1. Run `npm install` 1. Run `npm run tsc:w` to compile TypeScript to JavaScript locally (leave the window running). This is only needed when in "dev" mode. 1. Open another command window and navigate to this application's root folder in the command window 1. Run `docker-compose build` to build the images 1. Run `docker-compose up` to run the containers 1. Navigate to http://localhost:3000 if using Docker for Mac/Windows or http://192.168.99.100:3000 if using Docker Toolbox in a browser 1. Live long and prosper