Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8478567
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T18:46:53+00:00 2026-06-10T18:46:53+00:00

I mainly worked with Rails-like frameworks in the past. Recently, I’ve been looking into

  • 0

I mainly worked with Rails-like frameworks in the past. Recently, I’ve been looking into Express.js. I’ve noticed that most of the examples do the routing inside the main app.js, or do the rendering inside route.js and I’m a bit uncomfortable with that.

A slightly more familiar example is the mvc folder in Express.js’ github page, but even then, I find the way the routing is done a bit weird (also, view folder inside controllers? What’s happening?).

My question is, what change of mentality should I perform, or is there a standard way of using Express.js that clearly separates the concern of routing and controllers and make them work neatly?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T18:46:54+00:00Added an answer on June 10, 2026 at 6:46 pm

    After a bit more of experimentation, I answered my own question.

    Express is not made for these kind of tasks. Frameworks like Geddy or Tower are, although none of them are production-ready like Express is.

    There is a module called Express-resource that does just what I want. Nevertheless, in the worst case, it’s relatively easy to build one’s own routing / controlling mechanism in Express.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I mainly code small programs for myself, but recently, I've been starting to code
I've mainly been using Mono for Android via Visual Studio, but have switched over
Historically I've mainly written web apps in Django, but now I'm increasingly finding that
first post here=) I've been looking for this answer and haven't been able to
I'm aware that is a rather difficult question to answer, mainly because there's so
Question 1) I would like to know whether ruby on rails have gems with
My background is mainly .NET, including the ASP and VB components. I've also worked
I've been considering the idea of working on some open source projects, mainly because
A client noticed that one of our java applets wasn't working anymore. However, we
Okay i know this has been asked a lot but it seems that none

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.