Added front-end & back-end "order" service #267
This commit is contained in:
parent
3c0fe7a4bc
commit
e1bc434f34
|
@ -7,3 +7,4 @@ production: []
|
|||
salix: []
|
||||
route: []
|
||||
ticket: [item]
|
||||
order: []
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
export * from './src';
|
|
@ -0,0 +1,24 @@
|
|||
{
|
||||
"module": "order",
|
||||
"name": "Orders",
|
||||
"icon": "shopping_basket",
|
||||
"validations": true,
|
||||
"routes": [
|
||||
{
|
||||
"url": "/order",
|
||||
"state": "order",
|
||||
"abstract": true,
|
||||
"component": "ui-view"
|
||||
},
|
||||
{
|
||||
"url": "/list?q",
|
||||
"state": "order.list",
|
||||
"component": "vn-order-list"
|
||||
},
|
||||
{
|
||||
"url": "/create",
|
||||
"state": "order.create",
|
||||
"component": "vn-order-create"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -0,0 +1 @@
|
|||
export * from './module';
|
|
@ -0,0 +1 @@
|
|||
Orders: Orders
|
|
@ -0,0 +1 @@
|
|||
Orders: Catálogo
|
|
@ -0,0 +1,5 @@
|
|||
import {ng} from 'vendor';
|
||||
import 'core';
|
||||
|
||||
const ngModule = ng.module('order', ['vnCore']);
|
||||
export default ngModule;
|
|
@ -10,5 +10,7 @@ export default {
|
|||
item:
|
||||
cb => require.ensure([], () => cb(require('item'))),
|
||||
ticket:
|
||||
cb => require.ensure([], () => cb(require('ticket')))
|
||||
cb => require.ensure([], () => cb(require('ticket'))),
|
||||
order:
|
||||
cb => require.ensure([], () => cb(require('order')))
|
||||
};
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
FROM node:8.9.4
|
||||
|
||||
COPY order /app
|
||||
COPY loopback /loopback
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
RUN npm install
|
||||
RUN npm -g install pm2
|
||||
|
||||
CMD ["pm2-docker", "./server/server.js"]
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"name": "vn-order",
|
||||
"version": "1.0.0",
|
||||
"main": "server/server.js",
|
||||
"scripts": {
|
||||
"lint": "eslint .",
|
||||
"start": "node .",
|
||||
"posttest": "npm run lint && nsp check"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://git.verdnatura.es/salix"
|
||||
},
|
||||
"license": "GPL-3.0",
|
||||
"description": "vn-order"
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
var vnLoopback = require('../../loopback/server/server.js');
|
||||
|
||||
var app = module.exports = vnLoopback.loopback();
|
||||
vnLoopback.boot(app, __dirname, module);
|
Loading…
Reference in New Issue