faustinoaq changed the topic of #amber to: Welcome to Amber Framework community! | https://amberframework.org | Developer happiness, productivity and bare metal performance | GH: https://github.com/amberframework | Docs: https://docs.amberframework.org | Gitter: https://gitter.im/amberframework/amber | IRC Logger: https://irclog.whitequark.org/amber | Amber::Server.start
_whitelogger has joined #amber
<FromGitter> <damianham> @tekanic there is a crystal shard for JWT - very easy to setup. Here is an example of a JWT pipe in a recipe - https://github.com/damianham/amber_material/blob/master/app/src/pipes/authenticate_jwt.cr.lqd - just remove the liquid stuff and drop it into src/pipes and add it to your pipeline in config/routes.cr
<FromGitter> <elorest> @tekanic You could also use encrypted amber sessions by default. Just make sure that your app reads the `Set-Cookie` header and sends back the `Cookie` header. No real reason to reinvent the wheel and just use different header names.
<FromGitter> <elorest> ifconfig
<FromGitter> <damianham> Amigos - I have created a new recipe that uses Material UI for a mini persistent drawer menu. There is also support for JWT token authentication, live data streaming and a few other goodies for a more pleasant UX. I would appreciate it if anyone has the time to take it for a spin and let me know what you think. TIA
<FromGitter> <drum445> Have you got a link my friend?
feepbot has quit [Ping timeout: 240 seconds]
feepbot has joined #amber
<FromGitter> <damianham> if you already have amber installed then type ⏎ ⏎ ```$ amber new myappname -r damianham/amber_material``` [https://gitter.im/amberframework/amber?at=5c7fb0dc1c597e5db6917060]
<FromGitter> <rmarronnier> Hey all, I need to implement a recurrent job in my amber app (deleting inactive user accounts after 30 days for example) without using an external app like cron or sidekiq. What would be the best way to do that ?
<FromGitter> <konung> Take a look at Mosquito shard
<FromGitter> <konung> Which is similar to Sidekiq but easier to setup.
<FromGitter> <Blacksmoke16> `without using an external app like cron or sidekiq`
<FromGitter> <Blacksmoke16> but yea, without cron or a runner like that im not sure how you would automate that
<FromGitter> <konung> I don’t think there is a built in way in Crystal itself to have a process / service that would sit and trigger your jobs periodically . Unless you write a program to do that. And you did , you would be reinventing Cron .
<FromGitter> <Blacksmoke16> only using cron would be just setup a private endpoint that cron hits up every x hours
<FromGitter> <Blacksmoke16> that triggers the logic
<FromGitter> <konung> πŸ‘
<FromGitter> <Blacksmoke16> mosquito has cron style jobs
<FromGitter> <Blacksmoke16> if you dont want the extra dep, using normal cron with an endpoint would prob be an okay alternative
<robacarp> @rmarronnier you can do a spawn {} in your app, if you want
<robacarp> I've messed with spawning the mosquito worker in the app.cr instead of as a different process, but I'm not comfortable recommending that because if your jobs are long running or something it can take down your ability to respond to web requests
<FromGitter> <fkchang> This is an interesting thread, React guy loves Rails and not Ruby https://twitter.com/chantastic/status/1103037837539041280 -- and yet here we love that we get both in the front end
<FromGitter> <piedoom> Hey there - is there an equivalent to the `.html_safe` method from rails in amber?