AndriiKuznietsov75, to webdev Ukrainian
@AndriiKuznietsov75@social.kyiv.dcomm.net.ua avatar
nurkiewicz, to programming
@nurkiewicz@fosstodon.org avatar

10 years ago 4.0 was released. 5.x is still in beta https://www.npmjs.com/package/express/v/4.0.0

thisismissem, to programming
@thisismissem@hachyderm.io avatar

Handlebars.js is the worst templating language in existence, but, if you have to use it, and need some sort of "global" value in your templates, e.g., a csrf_token, then you can use this:

https://gist.github.com/ThisIsMissEm/014a2d6ddb0ba53bebfb7be04870c46b

I'm sorry for writing this code, it's a horrible hack. But maybe it'll be useful to you.

thisismissem, to programming
@thisismissem@hachyderm.io avatar

Just had the most annoying bug to debug in an Express App. I’d included the cors middleware, but had done:

app.use(cors)

instead of:

app.use(cors())

so requests just hung indefinitely. Took me a good 30-60 minutes to debug, because I'd changed a bunch of other code that could’ve been interacting badly.

nurkiewicz, to programming
@nurkiewicz@fosstodon.org avatar

I just noticed that the last major (4.x) update of was 10 years ago... 5.x is still not released https://www.npmjs.com/package/express?activeTab=versions

pb4000, to webdev

Starting on a rewrite of an internal tool for a client, but trying to decide on which stack to use. The previous developer is versed in Vue/express and is able to help me out if I went that route. However, I've gotten a taste of sveltekit and love it because I can combine the frontend and API pretty seamlessly. Its problems are twofold though:

  1. The previous dev would be significantly less help
  2. Sveltekit is very new, meaning it is constantly changing and has a smaller, though more invested ecosystem (libraries, community, etc.)

I'm leaning towards Vue/Express right now, but I'm still not sure..

thisismissem, to programming
@thisismissem@hachyderm.io avatar

Can express.js not support async/await in route/middleware handlers? I thought it could now.. but I can't find this in the documentation?

sirber, to javascript
@sirber@fosstodon.org avatar

I really don't dislike in mode!

sirber,
@sirber@fosstodon.org avatar

For session handling, I'm gonna use cookie-session in httpOnly mode, so @nosherwan will be happy. A guard will validate user roles from the cookie data. The data will be set at login and destroyed at logout.

larnius, to webdev
@larnius@mastodontech.de avatar

After several days of working on my #MagicMirror, which is now working as intended, I went back to day 48 of #100DaysOfCode #WebDev. Today was an introduction to #ExpressJS, and the course is running pretty fast now. I really like it, especially because it allows me to play around more and do more useful things with #JavaScript. But on the other hand, I feel I need to repeat a few course sections.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • osvaldo12
  • DreamBathrooms
  • mdbf
  • InstantRegret
  • ngwrru68w68
  • magazineikmin
  • everett
  • thenastyranch
  • Youngstown
  • slotface
  • cisconetworking
  • kavyap
  • ethstaker
  • JUstTest
  • modclub
  • GTA5RPClips
  • khanakhh
  • tacticalgear
  • Durango
  • rosin
  • normalnudes
  • Leos
  • provamag3
  • tester
  • cubers
  • anitta
  • lostlight
  • All magazines