Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

JavaScript Joel
JavaScript Joel

Posted on

     

Looking for beta testers for express-easy-routes

Express Easy Routes sets up a happy mediumConvention over Configuration approach to express routes.

Do you use express? Would you care to giveexpress-easy-routes a spin?

If you are used to writing express routes this way 👇, you might find Express Easy Routes useful!

app.use(express.static());// ❌ NO!// ❌ NO!app.get("/",(req,res)=>{res.send("Hello World!");});

Instead of configuring each route, tell express where to find your routes.

// ✅ YES!routes({app,path:__dirname+"/middlewares/**/*.middleware.js"});routes({app,path:__dirname+"/controllers/**/*.controller.js"});

I have convinced Paciolan of the benefits of contributing to the open source community. I am hoping to turn this into a positive experience so they continue to give us devs the time and resources to make more contributions.

All feedback welcome! Want to contribute? Head over to theGithub.

Continue to:npmgithub

Cheers!

Top comments(7)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss
CollapseExpand
 
thehanna profile image
Brian Hanna
  • Location
    Chicagoland
  • Education
    Bachelors, Graphic Arts
  • Joined

I'm currently refactoring a bunch of Express projects and I'll definitely give this a try!

CollapseExpand
 
joelnet profile image
JavaScript Joel
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
  • Joined

Awesome. I can't wait to hear your feedback on this!

CollapseExpand
 
thehanna profile image
Brian Hanna
  • Location
    Chicagoland
  • Education
    Bachelors, Graphic Arts
  • Joined

Finally got a chance to implement this in a project I'm working on! It's really straightforward. I especially like the ability to easily add global middleware. I'd love to be able to use it to wire up middleware in an individual controller, but it's cleaned up a lot of clutter already!

Thread Thread
 
joelnet profile image
JavaScript Joel
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
  • Joined

Glad it is helpful!

Tell me more about what, why, how of wiring up middleware to one controller. If it can't be done currently, maybe a future feature can add this.

Cheers!

CollapseExpand
 
debkanchan profile image
Debkanchan Samadder
  • Work
    Founder @ Ride
  • Joined

I never realized until now you could have an orgasm over code.

CollapseExpand
 
joelnet profile image
JavaScript Joel
Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
  • Joined

LOL I guess that means you like this?

CollapseExpand
 
debkanchan profile image
Debkanchan Samadder
  • Work
    Founder @ Ride
  • Joined

YES! VERY MUCH!

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

Cofounded Host Collective (DiscountASP.net). Cofounded Player Axis (Social Gaming). Computer Scientist and Technology Evangelist with 20+ years of experience with JavaScript!
  • Joined

More fromJavaScript Joel

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp