From 3695a6f47abc6fce419e12efc645ebf84a638d3f Mon Sep 17 00:00:00 2001 From: Unknown Date: Sat, 16 Mar 2019 10:12:51 +0100 Subject: [PATCH] Renaming and adapting for the strategizer module --- README.md | 23 +---------------------- package-lock.json | 26 +++++++++++++++++++------- package.json | 6 +++--- 3 files changed, 23 insertions(+), 32 deletions(-) diff --git a/README.md b/README.md index 254583a72..25af39636 100644 --- a/README.md +++ b/README.md @@ -1,22 +1 @@ -This is a draft of the boilerplate we'll use for backends using mongoose and node. - -Don't forget to update the module name in ./package.json on lines 1-4-10. - -The following files are there as examples, you have to change them with your own : - **/index.js files should be adapted for your file structure - - ./src/enums/EventState.js - - ./src/models/event.js - ./src/models/plotter.js - ./src/models/formula.js - If you have relations between items, don't forget the "this.populate" statement (check ./src/models/events.js) - - ./src/schema/mutations/ChangeEventState.js => left there so you can see how to make mutation that take "normal arguments" - ./src/schema/mutations/CreateEvent.js => left there so you can see how to make mutation that take "custom input types" as arguments - ./src/schema/mutations/EditParticipant.js => left so you can see how to use axios to call another of our services if needed - - ./src/schema/queries/Events.js => minimal query - ./src/schema/queries/EventsByHost.js => query with an argument - - ./src/schema/types/** => a few examples where left there so you can check them out, globally => first define your "return types" who should be very similar to your models. Then create you "input types" who should be used as much as possible if the input is a complexe object. It will help in the future when adding features as pageability, traits etc... +This is the backend of the Strategizer module. It enables you to save and change your strategies for the Jason indicator approch. \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 9b4041d6b..2c714f870 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,5 +1,5 @@ { - "name": "modulename-server", + "name": "strategizer-server", "version": "0.0.1", "lockfileVersion": 1, "requires": true, @@ -3400,6 +3400,7 @@ "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-2.0.0.tgz", "integrity": "sha1-gTg9ctsFT8zPUzbaqQLxgvbtuyg=", "dev": true, + "optional": true, "requires": { "is-glob": "^2.0.0" } @@ -3864,7 +3865,8 @@ "version": "1.0.0", "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-1.0.0.tgz", "integrity": "sha1-rEaBd8SUNAWgkvyPKXYMb/xiBsA=", - "dev": true + "dev": true, + "optional": true }, "is-finite": { "version": "1.0.2", @@ -3886,6 +3888,7 @@ "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-2.0.1.tgz", "integrity": "sha1-0Jb5JqPe1WAPP9/ZEZjLCIjC2GM=", "dev": true, + "optional": true, "requires": { "is-extglob": "^1.0.0" } @@ -4818,7 +4821,8 @@ "ansi-regex": { "version": "2.1.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "aproba": { "version": "1.2.0", @@ -5027,12 +5031,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.3.5", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.2", "yallist": "^3.0.0" @@ -5051,6 +5057,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -5230,7 +5237,8 @@ "safe-buffer": { "version": "5.1.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "safer-buffer": { "version": "2.1.2", @@ -5286,6 +5294,7 @@ "version": "3.0.1", "bundled": true, "dev": true, + "optional": true, "requires": { "ansi-regex": "^2.0.0" } @@ -5329,12 +5338,14 @@ "wrappy": { "version": "1.0.2", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "yallist": { "version": "3.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true } } }, @@ -5499,6 +5510,7 @@ "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-2.1.1.tgz", "integrity": "sha1-GrKLVW4Zg2Oowab35vogE3/mrtk=", "dev": true, + "optional": true, "requires": { "remove-trailing-separator": "^1.0.1" } diff --git a/package.json b/package.json index f1797fca5..0610483dd 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,13 @@ { - "name": "modulename-server", + "name": "strategizer-server", "version": "0.0.1", - "description": "Advanced Algos modulename backend API", + "description": "Advanced Algos strategizer backend API", "author": "", "license": "", "main": "src/index.js", "repository": { "type": "git", - "url": "git+https://github.com/Superalgos/ModulenameServerModule.git" + "url": "git+https://github.com/Superalgos/StrategizerServerModule.git" }, "scripts": { "start": "nodemon --exec babel-node --presets env,stage-2 src/index.js",