Aurelia client included as ES6-SystemJs, ES6-Webpack and Typescript-SystemJs versions
This is a skeleton for an Aurelia client using aurelia-orm for rest access to a Strongloop loopback api server.
The aurelia-orm documentantion you'll find at aurelia-orm.spoonx.org.
For typescript, replace cd client
below with cd client-ts
.
git clone https://github.com/doktordirk/aurelia-orm-loopback-sample
cd aurelia-orm-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.
git clone https://github.com/doktordirk/aurelia-orm-loopback-sample
cd aurelia-orm-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.
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.
An aurelia client app using aurelia-orm for customer management (with default endpoint, repository and entity).