Skip to content

doktordirk/aurelia-api-loopback-sample

Repository files navigation

Aurelia-api-loopback-sample

Join the chat at https://gitter.im/SpoonX/Dev

Aurelia client included as ES6-SystemJs, ES6-Webpack and Typescript-SystemJs versions

This is a skeleton for an Aurelia client using aurelia-api for rest access to a Strongloop loopback api server.

The aurelia-api documentantion you'll find at aurelia-api.spoonx.org.

Installation instructions

For ES6-SystemJs and Typescript-SystemJs

For typescript, replace cd client below with cd client-ts.

git clone https://github.com/doktordirk/aurelia-api-loopback-sample
cd aurelia-api-loopback-sample
npm install
cd client
npm install
jspm install

To run the sample type in the client folder:

gulp watch

This builds the aurelia-client and serves the client and the api server. Browse to localhost:3000 to see it in action.

For ES6-Webpack

git clone https://github.com/doktordirk/aurelia-api-loopback-sample
cd aurelia-api-loopback-sample
npm install
cd client-wp
npm install

To run the sample open two shells:

  • run server in one console from the root folder with: node .
  • run client in the second console from the client-wp folder with: npm run dev

Browse to localhost:3000 to see it in action.

What's in it

Loopback server

A loopback api server. A local file is used as database. Have a peek at mydata.json to gain some insight.

The customer model with firstName and lastName properties.

Aurelia client

An aurelia client app using aurelia-api for customer management.

Support

  • Aurelia Gitter chat Join the chat at https://gitter.im/aurelia/discuss
  • Spoonx/Dev Gitter Chat for aurelia-api/-authentication/-orm/-notifications Join the chat at https://gitter.im/SpoonX/Dev
  • Loopback Gitter Chat Gitter

About

Aurelia skeleton-navigation with aurelia-api and a loopback server

Resources

Stars

Watchers

Forks

Packages

No packages published