Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
swing-webapp
api
Commits
3310def6
Commit
3310def6
authored
Jun 24, 2021
by
antoine masson
Browse files
Merge branch 'Development' into production
parents
839f6f4e
c27906c9
Changes
4
Hide whitespace changes
Inline
Side-by-side
README.md
View file @
3310def6
...
...
@@ -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
filename.txt
0 → 100644
View file @
3310def6
.
./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
models/SurveyModel.js
View file @
3310def6
...
...
@@ -15,7 +15,8 @@ const text = new Schema({
language
:
String
,
html
:{
content
:
String
,
},});
},
});
const
textcaption
=
new
Schema
({
language
:
String
,
...
...
public/template/LanguageDef.json
View file @
3310def6
...
...
@@ -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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment