Added front-end & back-end "order" service #267

This commit is contained in:
Joan Sanchez 2018-05-07 09:08:46 +02:00
parent 3c0fe7a4bc
commit e1bc434f34
12 changed files with 76 additions and 1 deletions

View File

@ -7,3 +7,4 @@ production: []
salix: []
route: []
ticket: [item]
order: []

1
client/order/index.js Normal file
View File

@ -0,0 +1 @@
export * from './src';

24
client/order/routes.json Normal file
View File

@ -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"
}
]
}

View File

@ -0,0 +1 @@
export * from './module';

View File

@ -0,0 +1 @@
Orders: Orders

View File

@ -0,0 +1 @@
Orders: Catálogo

View File

@ -0,0 +1,5 @@
import {ng} from 'vendor';
import 'core';
const ngModule = ng.module('order', ['vnCore']);
export default ngModule;

View File

@ -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')))
};

12
services/order/Dockerfile Normal file
View File

@ -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"]

View File

@ -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"
}

View File

@ -0,0 +1,6 @@
{
}

View File

@ -0,0 +1,5 @@
var vnLoopback = require('../../loopback/server/server.js');
var app = module.exports = vnLoopback.loopback();
vnLoopback.boot(app, __dirname, module);