DanWahlin/Angular-RESTfulService
À propos
Example of Angular calling into a RESTful service
Développement web et applicatifProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalAngular RESTful Service Example
This project provides a simple look at getting started using Angular to call into a RESTful service. Simply clone the project or download and extract the .zip to get started.
Angular 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 service classes for Ajax calls
- Using Angular 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
Install Node.js and MongoDB on your dev box
Execute 'mongod' to start the MongoDB daemon if it's not already running
Install Nodemon:
npm install nodemon -gOpen
config/config.development.jsonand change the host frommongodbtolocalhostRun
npm installto install app dependenciesRun
npm startto compile the TypeScript and start the serverBrowse to http://localhost:3000
Running the Application with Docker
Install Docker for Mac/Windows or Docker Toolbox - https://www.docker.com/products/overview
Open a command prompt window
Run
npm installRun
npm run tsc:wto compile TypeScript to JavaScript locally (leave the window running). This is only needed when in "dev" mode.Open another command window and navigate to this application's root folder in the command window
Run
docker-compose buildto build the imagesRun
docker-compose upto run the containersNavigate to http://localhost:3000 if using Docker for Mac/Windows or http://192.168.99.100:3000 if using Docker Toolbox in a browser
Live long and prosper
Explorer des projets similaires
Chargement…