Skip to content
This repository has been archived by the owner on May 17, 2022. It is now read-only.

J-Siu/simple-api-example-ng2-express

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Angular Simple API Express Example Paypal donate

This is example for the following 2 libraries:

To enable faster update, simple-api-client-ng2 switched to Angular CLI starting 8.2.0 and use new repository https://github.com/J-Siu/ng2-simple-api-lib/

The new repository contains both library and server example.

This example repository will no longer be maintained.

Table Of Content

Usage

npm install
npm run build-app
npm start

Node.js Server Code

server/
├── api-object
│   ├── data-obj.js
│   ├── demo-obj.js
│   ├── error-obj.js
│   ├── index.js
│   └── info-obj.js
└── server.js

Angular 2 Application Code

public/
├── app
│   ├── api.service.ts
│   ├── app.component.ts
│   ├── app.module.ts
│   ├── app.routing.ts
│   ├── data.component.ts
│   ├── demo.component.ts
│   ├── error.component.ts
│   ├── home.component.ts
│   ├── info.component.ts
│   ├── main.ts
│   └── systemjs.config.js
└── index.html

Contributors

Changelog

  • 1.2.0 - Initial upload
  • 1.2.1
    • Update package.json
    • Update Readme.md

License

The MIT License

Copyright (c) 2016

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Example for simple-api-node, an expressjs api handler, and simple-api-client-ng2, an Angular 2 api service.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published