Renaming and adapting for the strategizer module
This commit is contained in:
1 parent
094c2f166f
commit
3695a6f47a
3 files changed
+23
-32
No files matched your search
@@ -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.
|
||||
Generated
+19
-7
@@ -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"
|
||||
}
|
||||
|
||||
+3
-3
@@ -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",
|
||||
|
||||
Reference in new issue
Block a user