This is the frontend for Intelligent Training Portal (ITPORTAL)
You'll need the backend implementation for ITPORTAL for complete functionality.
Get the ITPORTAL backend implementation using express from github.com/imadx/itportal-backend-express.
To start:
$ npm install
To develop:
$ npm run dev
To build for production:
$ npm run build
To lint you code:
$ npm run lint
Generated by VuePack.
The following controller endpoints can be used within the front end components to query data from the resource server.
Refer to express-restify-mongoose for available options.
Some methods accept a callback function to called in the event of success.
The following code snippet can be used to query data from organization
collection with only the name
field selected.
Vue.rest.getData('organization', '?select=name', function(data){
console.log(data);
})
For custom rest services, axios object is available through the Vue object within components
Vue.axios.get(
_url
).then(res => {
let _data = (res.data);
console.log(data);
}).catch(function(err) {
console.log(err);
});
Vue.axios.get(
_url, data
).then(res => {
let _data = (res.data);
console.log(data);
}).catch(function(err) {
console.log(err);
});