add initial client config for loopback client
This commit is contained in:
8
client/config.json
Normal file
8
client/config.json
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
{
|
||||||
|
"restApiRoot": "/api",
|
||||||
|
"remoting": {
|
||||||
|
"context": {
|
||||||
|
"enableHttpContext": false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
5
client/config.local.js
Normal file
5
client/config.local.js
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
var globalConfig = require('../common/config.global');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
restApiRoot: globalConfig.restApi
|
||||||
|
};
|
10
client/datasources.json
Normal file
10
client/datasources.json
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
{
|
||||||
|
"remote": {
|
||||||
|
"name": "remote",
|
||||||
|
"connector": "remote"
|
||||||
|
},
|
||||||
|
"local": {
|
||||||
|
"name": "local",
|
||||||
|
"connector": "memory"
|
||||||
|
}
|
||||||
|
}
|
7
client/datasources.local.js
Normal file
7
client/datasources.local.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
var globalConfig = require('../common/config.global');
|
||||||
|
|
||||||
|
module.exports = {
|
||||||
|
remote: {
|
||||||
|
url: globalConfig.restApiUrl
|
||||||
|
}
|
||||||
|
};
|
8
client/loopbackClient.js
Normal file
8
client/loopbackClient.js
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
var loopback = require('loopback'),
|
||||||
|
boot = require('loopback-boot');
|
||||||
|
|
||||||
|
var app = loopback();
|
||||||
|
|
||||||
|
boot(app, __dirname);
|
||||||
|
|
||||||
|
module.exports = app;
|
32
client/model-config.json
Normal file
32
client/model-config.json
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
{
|
||||||
|
"_meta": {
|
||||||
|
"sources": [
|
||||||
|
"../common/models",
|
||||||
|
"./models"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"user": {
|
||||||
|
"dataSource": "remote"
|
||||||
|
},
|
||||||
|
"bonfire": {
|
||||||
|
"dataSource": "remote"
|
||||||
|
},
|
||||||
|
"challenge": {
|
||||||
|
"dataSource": "remote"
|
||||||
|
},
|
||||||
|
"comment": {
|
||||||
|
"dataSource": "remote"
|
||||||
|
},
|
||||||
|
"fieldGuide": {
|
||||||
|
"dataSource": "remote"
|
||||||
|
},
|
||||||
|
"job": {
|
||||||
|
"dataSource": "remote"
|
||||||
|
},
|
||||||
|
"nonprofit": {
|
||||||
|
"dataSource": "remote"
|
||||||
|
},
|
||||||
|
"story": {
|
||||||
|
"dataSource": "remote"
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user