-
Notifications
You must be signed in to change notification settings - Fork 13
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
Development #26
Development #26
Conversation
0419959
to
41f39dd
Compare
The build and docker tests are failing. Could you make sure that the app builds properly outside your local environment? |
I've added |
I see that the config file contains just the Auth0 client id. In that case, it does not need to be hidden and should be included in the source to allow for automatic building and deployment |
…d config, remove config ts file
Still, I think it's better to have such things in a configuration file rather than being hardcoded into code itself. Here's one use case why, I have my own personal auth0 account which I use to experiment/test the code that I write, if I modify client id in code, I'll need to exempt it from commits every single time I change anything else. With a configuration file like this, user can modify configuration with ease according to different environments. To resolve this, I added docker rule to copy config.example.json (which is default config for heroku) to config.json. Moreover, more things are also added to config, and will keep on increasing in the future. |
Got it. In that case, lets make use of the environment.ts and environment.prod.ts files in the environments folder. The auth service has a good example on how I used the files to change based on various environments. You could even add a new environment for your development environment. Thi way, everything needed to build the app (currently the build step is failing in the node workflow) is present in default configurations at all times. When building, use the --configuration flag |
Thanks for the info, moved configs to environment files. |
I guess tests are failing in the components you've written. Can you look into it? @bilalshaikh42 |
Yup tests are not yet passing per #9 . For now we can only assume it works if building. I'll merge this in |
CRBM-Viz/src/app/Components/loading-spinner/loading-spinner.component.html
Outdated
Show resolved
Hide resolved
CRBM-Viz/src/app/Components/loading-spinner/loading-spinner.component.sass
Outdated
Show resolved
Hide resolved
Test the creation of tokenThis comment was generated by todo based on a
|
I added client id and domain to config and kept it in gitignore. I've added config.example.json which the user can copy paste as config.json and modify the contents for testing purposes. Or environment wise.