Commit 0803d762 authored by Kévin LEMELE's avatar Kévin LEMELE

Module esn.moodle bootstrap

parent 479318df
Pipeline #14879 failed with stage
in 19 minutes and 48 seconds
# linagora.esn.seed
Seed module as basis to create other modules
# linagora.esn.moodle
## Install
*Note: The following instructions assumes that you have already installed OpenPaaS ESN in the path referenced by $ESN below.*
While waiting for a npm-based dependency injection handler, you have to install the module in OpenPaaS ESN like this:
**1. Clone**
```bash
git clone https://ci.linagora.com/linagora/lgs/openpaas/linagora.esn.seed.git
git clone https://ci.linagora.com/klemele/linagora.esn.moodle.git
```
**2. Install it in OpenPaaS**
......@@ -23,7 +19,7 @@ There is two way to install the model in OpenPaaS, so choose one of them:
The modules must be available in the `$ESN/modules` folder:
```bash
ln -s path_to_module/linagora.esn.seed $ESN/modules/
ln -s path_to_module/linagora.esn.moodle $ESN/modules/
```
- B. _Using npm link_
......@@ -37,7 +33,7 @@ There is two way to install the model in OpenPaaS, so choose one of them:
```bash
cd $ESN
npm link linagora.esn.seed
npm link linagora.esn.moodle
npm install
```
......@@ -50,7 +46,7 @@ Copy the 'modules' array from `$ESN/config/default.json` into `$ESN/config/defau
"modules": [
"linagora.esn.core.webserver",
"linagora.esn.core.wsserver",
"linagora.esn.seed"
"linagora.esn.moodle"
],
```
......
{
"name": "linagora.esn.seed",
"name": "linagora.esn.moodle",
"main": "index.js",
"version": "0.0.1",
"authors": [
......
(function() {
'use strict';
var MODULE_NAME = 'linagora.esn.seed';
var MODULE_NAME = 'linagora.esn.moodle';
var MODULE_PREFIX = 'seed';
angular.module(MODULE_NAME)
......
(function() {
'use strict';
var MODULE_NAME = 'linagora.esn.seed';
var MODULE_NAME = 'linagora.esn.moodle';
angular.module(MODULE_NAME, [
'ui.router',
......
(function() {
'use strict';
var MODULE_NAME = 'linagora.esn.seed';
var MODULE_DIR_NAME = '/linagora.esn.seed';
var MODULE_NAME = 'linagora.esn.moodle';
var MODULE_DIR_NAME = '/linagora.esn.moodle';
angular.module(MODULE_NAME)
......
(function() {
'use strict';
var MODULE_NAME = 'linagora.esn.seed';
var MODULE_NAME = 'linagora.esn.moodle';
angular.module(MODULE_NAME)
.directive('seedApplicationMenu', seedApplicationMenu);
......
(function() {
'use strict';
var MODULE_NAME = 'linagora.esn.seed';
var MODULE_DIR_NAME = '/linagora.esn.seed';
var MODULE_NAME = 'linagora.esn.moodle';
var MODULE_DIR_NAME = '/linagora.esn.moodle';
angular.module(MODULE_NAME)
.factory('seedRestangular', seedRestangular);
......
(function() {
'use strict';
var MODULE_NAME = 'linagora.esn.seed';
var MODULE_NAME = 'linagora.esn.moodle';
angular.module(MODULE_NAME)
.controller('seedHomeController', seedHomeController);
......
......@@ -10,7 +10,7 @@ describe('the seedHomeController', function() {
beforeEach(function() {
angular.mock.module('linagora.esn.seed');
angular.mock.module('linagora.esn.moodle');
angular.mock.inject(function(_$rootScope_, _$controller_) {
$rootScope = _$rootScope_;
......
(function() {
'use strict';
var MODULE_NAME = 'linagora.esn.seed';
var MODULE_DIR_NAME = '/linagora.esn.seed';
var MODULE_NAME = 'linagora.esn.moodle';
var MODULE_DIR_NAME = '/linagora.esn.moodle';
angular.module(MODULE_NAME)
.component('seedSubheader', seedSubheader());
......
'use strict';
var MODULE_NAME = 'linagora.esn.seed';
var MODULE_DIR_NAME = '/linagora.esn.seed';
var MODULE_NAME = 'linagora.esn.moodle';
var MODULE_DIR_NAME = '/linagora.esn.moodle';
angular.module(MODULE_NAME)
......
.seed-button(contextual-sidebar, data-content-template="/linagora.esn.seed/app/home/seed-sidebar.html")
.seed-button(contextual-sidebar, data-content-template="/linagora.esn.moodle/app/home/seed-sidebar.html")
i.mdi.mdi-menu
'use strict';
var MODULE_NAME = 'linagora.esn.seed';
var MODULE_DIR_NAME = '/linagora.esn.seed';
var MODULE_NAME = 'linagora.esn.moodle';
var MODULE_DIR_NAME = '/linagora.esn.moodle';
angular.module(MODULE_NAME)
......
......@@ -5,7 +5,7 @@ const Dependency = AwesomeModule.AwesomeModuleDependency;
const path = require('path');
const glob = require('glob-all');
const FRONTEND_JS_PATH = __dirname + '/frontend/app/';
const AWESOME_MODULE_NAME = 'linagora.esn.seed';
const AWESOME_MODULE_NAME = 'linagora.esn.moodle';
const myAwesomeModule = new AwesomeModule(AWESOME_MODULE_NAME, {
dependencies: [
......
{
"name": "linagora.esn.seed",
"name": "linagora.esn.moodle",
"version": "0.0.1",
"description": "OpenPaaS Module sample to create new ones",
"main": "index.js",
......@@ -50,7 +50,7 @@
},
"repository": {
"type": "git",
"url": "https://ci.linagora.com/linagora/lgs/openpaas/linagora.esn.seed.git"
"url": "https://ci.linagora.com/linagora/lgs/openpaas/linagora.esn.moodle.git"
},
"author": "Linagora R&D",
"license": "AGPL-3.0",
......
'use strict';
const MODULE_DIR_NAME = '/linagora.esn.seed';
const MODULE_DIR_NAME = '/linagora.esn.moodle';
module.exports = function(config) {
config.set({
......
......@@ -7,7 +7,7 @@ const path = require('path');
const testConfig = require('../config/servers-conf');
const basePath = path.resolve(__dirname + '/../../node_modules/linagora-rse');
const backendPath = path.normalize(__dirname + '/../../backend');
const MODULE_NAME = 'linagora.esn.seed';
const MODULE_NAME = 'linagora.esn.moodle';
let rse;
before(function(done) {
......
......@@ -2,7 +2,7 @@
const request = require('supertest');
const expect = require('chai').expect;
const MODULE_NAME = 'linagora.esn.seed';
const MODULE_NAME = 'linagora.esn.moodle';
describe('The example API', function() {
let user, app;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment