Commit c27906c9 authored by antoine masson's avatar antoine masson
Browse files

v1.12

* new variable file
* new README
parent bef40218
......@@ -16,3 +16,42 @@ npm start
```
npm start
```
## Files
./LICENSE : MIT License
./README.md
./config : directory with config files
./config/API.js : Concern the configuration of the API
./config/DB.js : Concern the configuration of the DB connection (mongo)
./controllers : Controlers are functions used in the API
./controllers/SurveyController.js : Functions used for surveys
./controllers/TokenController.js: Functions used for token
./controllers/UserController.js : Functions used for users
./filename.txt : this file list generated using tree -ifI node_modules > filename.txt
./helpers : function used for adding functionnalities
./helpers/errors.js : not used
./index.js : main file, used to initiate the API server
./middleware : function used between functions
./middleware/auth.js : manages authentification headers
./middleware/errorHandler.js : not used
./models : mongo database model definition
./models/AdminUserModel.js : model for users
./models/SurveyLanguageModel.js : model for languages (template and translation)
./models/SurveyModel.js : models for surveys
./models/TokenModel.js : model for token
./package-lock.json : npm file for managing packages
./package.json : npm list of command and packages installed for this project
./public : external file needed or generated (for ex uploaded)
./public/template
./public/template/LanguageDef.json : template variable file definition (loaded if corresponding database is empty)
./public/template/LanguageTrans.json translation variable file definition (loaded if corresponding database is empty)
./public/uploads : not used
./routes : contains the different possible routes for the API
./routes/AdminUserRoute.js : route for users
./routes/Route.js : generic route
./routes/SurveyRoute.js : route for survey
./routes/TokenRoute.js : route for token
./startup.sh : server starting script
9 directories, 25 files
.
./LICENSE
./README.md
./config
./config/API.js
./config/DB.js
./controllers
./controllers/SurveyController.js
./controllers/TokenController.js
./controllers/UserController.js
./filename.txt
./helpers
./helpers/errors.js
./index.js
./middleware
./middleware/auth.js
./middleware/errorHandler.js
./models
./models/AdminUserModel.js
./models/SurveyLanguageModel.js
./models/SurveyModel.js
./models/TokenModel.js
./package-lock.json
./package.json
./public
./public/template
./public/template/LanguageDef.json
./public/template/LanguageTrans.json
./public/uploads
./routes
./routes/AdminUserRoute.js
./routes/Route.js
./routes/SurveyRoute.js
./routes/TokenRoute.js
./startup.sh
9 directories, 25 files
......@@ -15,7 +15,8 @@ const text = new Schema({
language:String,
html:{
content:String,
},});
},
});
const textcaption = new Schema({
language:String,
......
......@@ -422,5 +422,29 @@
"createdAt": "2021-04-21T12:32:58.233Z",
"updatedAt": "2021-04-21T12:32:58.233Z",
"id": "60801b7a060518b4673fbc76"
},
{
"type": "String",
"field": "SWINGWORSTTEXT",
"description": "Text Added on top of worst composition on SWING",
"createdAt": "2021-06-18T13:20:40.229Z",
"updatedAt": "2021-06-18T13:20:40.229Z",
"id": "60cc9da83152828242fcf7d4"
},
{
"type": "String",
"field": "HELPBTN",
"description": "Help Btn on Swing and Tradeoff",
"createdAt": "2021-06-18T19:53:33.647Z",
"updatedAt": "2021-06-18T19:53:33.647Z",
"id": "60ccf9bd3152828242fcf82d"
},
{
"type": "html",
"field": "RATIONAL_CONCLUSION_TABLE",
"description": "Text below prediction matrix in rational conclusion",
"createdAt": "2021-06-21T13:40:41.087Z",
"updatedAt": "2021-06-21T13:40:41.087Z",
"id": "60d096d93152828242fcf866"
}
]
\ No newline at end of file
Supports Markdown
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