I think that this would be a great episode. In your example, would the token be used in addition to their username and password for multifactor auth? Or, are you thinking that the user would not have a username and password and they would simply authenticate with the token?
Keep in mind that with security around authentication, ticking off more of these in the list below strengthens the auth wall.
I would highly advise against using just a token to authenticate without needing the username and password if that was the direction you were referring to.
You could do it, but you'd likely be overwriting a lot of the devise gem. If this were the direction, I probably wouldn't use devise as it's including so much that wouldn't be applicable in this case. I'd still use the OTP gem as it would be able to handle generating and validating the token.
Hello! There is already an episode on Docker (https://www.driftingruby.com/episodes/intro-to-docker-on-windows). Even though it is on Windows, it is still very applicable to any OS; including macOS. Personally, I prefer using RVM without docker for my development environment. However, since I run macOS on my development machine which is very different from the production instance, I will periodically launch a VM instance to ensure everything is working properly. Since most of my applications are running the AWS Linux image (very closely related to Centos), I'll make sure that assets are precompiled and working properly. The bootstrapping scripts that I have to initialize new instances are tested in my VMs.
Is there anything beyond this episode that you would like to see?
I don't think there is much for me to see.
Are you able to verify that the doc is generated and at that location? You should be able to do an eb ssh within the root of your application to SSH into the environment. From there, look under /var/app/current/public/docs to see if it is there. If it is, check the URL to see if you're able to access the file. You may also need to edit your config/environments/production.rb file and set this entry config.public_file_server.enabled = true
config.public_file_server.enabled = true
Cool, i thought the config you mention might be the issue but the comments said nginx should take care of it so I wasn't sure. I will take a look at your suggestions.
If you've set up the application with the vendor/assests/stylesheets/pdf.css and have this set to complile separately, you can download the CSS from https://getbootstrap.com/docs/3.3/customize/?id=08c164bd0450fe50e9bf and paste it into the pdf.css. This is what I'm using. You can probably also do the same for bootstrap 4.1, but the important bits would be the things selected where it is mainly the media styles, grid, typography, etc.
I download the bootstrap code from https://getbootstrap.com/docs/4.0/getting-started/contents/#css-files, i paste the bootstrap.css or bootstrap-grid.css to pdf.css , but i can't applay the "d-flex" function, can your find something wrong?
Personally, I would try to keep the styling in the email simple. Supporting rendering on different email clients is very difficult since there are definitely more email clients than browsers. Check out https://www.campaignmonitor.com/css for individual styling compatibility for mail clients.
The services class was done in https://www.driftingruby.com/episodes/rails-api-app-authentication-with-json-web-tokens
I have three more planned for the moment.
The activity feeds and ActionCable ones will probably come out in December.
If there is interest, I've been thinking about also doing an episode of taking a Bootstrap "Theme" and showing how to incorporate it within the application.
sounds cool! looking forward it.
Any themes in mind? One of my thoughts were https://coreui.io/
coreui.io looks great. I'm working currently with https://github.com/almasaeed2010/AdminLTE/tree/v3-dev but v3 (Bootstrap 4) is in Alpha for a long time. Any of these B4 themes out there would be a good choose to see how to:
* integrate with yarn / webpack in a rails 5 app
* customize theme
* add some custom page based vanilla js or jQuery
* use Stimulus.js
Not a ready-to-sale app, just a sample of usage of all of these (and perhaps more) topics
Yes, I plan on covering the refactoring soon. I wanted to get a bit more logic built in first. This upcoming episode, i'm doing something a little bit different. I go to meetups in my area and one thing that I've found is that people open have a fairly large disconnect from their production environment. So, I thought that a high level architectural overview could be beneficial to many.