-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Swagger documentation and review gulpfile #555
base: develop
Are you sure you want to change the base?
Conversation
…ild. Currently using hardcoded path that works only on my computer (WIP) (#535)
A default gulp task could be the following:
|
|
Notes on Environment variables (config)NowBefore deploying the portal in development or production environment, we EnhancementThe idea is to take inspiration from the approach used for the portal seeds and apply the same approach to configuration. Another motivation is to integrate the reading of the configuration as part of the deployment of the portal without relying any more on the user to run We would have a These config files need to be used at two different places:
Edit: Using |
Notes on SSL certificatesNowThe SSL certificates ( SolutionGulp tasks need to be added to load the SSL certificates and assign their content to environment variables. The server codebase must be changed so that it always read the SSL certification from the environment variables.
|
Here is the current error encountered by Travis:
|
Commenting out Swagger in |
Notes on loading of config and SSL certificate/key
Moreover, here are the current commands to build and start the portal in production environment immediately after having cloned the repos (work in progress).
Ultimately I would like to have a command that performs all these tasks, e.g. |
Working on a gulp task to start the server in development environment. There is an issue:
It should be
|
…nvironment (need to cleanup webpack.server.js)
|
|
…e more popular and updated ts-loader
Notes on MongoDBI have updated the docker image
|
Notes on Docker and populating DBThis error is reported by the docker container
|
Notes on Docker and missing app.htmlRunning
|
The initial issue is reported in #535.
So far we only had the swagger documentation served when running the portal in development environment. The documentation is served on
<portal_url>/api-docs
.In production environment, accessing
<portal_url>/api-docs
redirects to Swagger pet store example. The issue is that in production environment, comments (and so the swagger documentation) is stripped from the file as part of the build process to minimize the size of the app. Individual files where Swagger was configured to look at also no longer exist.The solution tested in this PR is to build the swagger document
swagger.json
and then have the server reading this document when the server starts. The solution developed should supporttest
,development
andproduction
environments.