3 ms·
Have you explored the base web application that express will create for you? If you just run the command "express foo", it'll create a starting point for you to
by Skywing 15y ago
Have you explored the base web application that express will create for you? If you just run the command "express foo", it'll create a starting point for you to look at. I usually create additional directories and .js files inside of the routes directory. I use them for name spacing and organizing my files pretty much. Then, in the index.js file I export them, so you end up with something like routes.auth.signin, routes.auth.signup, etc.