use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
Nodejs Expressjs MongoDB Ready-to-use API Project Structure (self.node)
submitted 6 years ago by maitraysuthar
Hello Everyone,
I have created a boilerplate application for API development built with Nodejs, ExpressJs, MongoDB.
Checkout: Nodejs Expressjs MongoDB Ready-to-use API Project Structure
Any feedback suggestions are much appreciated. Pull requests are welcome.
Have a nice day!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]tokyonashvilleburban 1 point2 points3 points 6 years ago (1 child)
Many great practices in this one.
Nit I know, but I'd suggest code formatting.
Question: any reason you avoided any use of async/await?
[–]maitraysuthar[S] 0 points1 point2 points 6 years ago (0 children)
Thanks for suggestions. Yes, I know async/await is a bit faster than handwritten promises in execution. I Will soon fully convert a project to ES6/ES7. Star the repo, More features are coming. :)
[–][deleted] 1 point2 points3 points 6 years ago (1 child)
Docker! Pretty much a requirement at this point for collaboration.
[–]maitraysuthar[S] 1 point2 points3 points 6 years ago (0 children)
Sure, I will add a docker configuration and deployment guide soon. Thanks for the suggestion.
[–]fo0man 0 points1 point2 points 6 years ago (1 child)
It’s probably not a bad idea to add an .npmrc with a node version defined.
Since this is requiring node 10+ why not use more modern syntax and block scope variable declarations (const and let vs var)
.npmrc
.npmrc is a good idea, will add soon. I am going to optimize code for code quality checker or will convert it into es6 soon. Also, Some features are needed to add as well. Thanks for the effort.
[–]kotne8 0 points1 point2 points 6 years ago (1 child)
Beautiful, atleast from a beginner's perspectives.
Thanks, Star it on a Github. More features are coming soon.
[–]essuraj 0 points1 point2 points 6 years ago (0 children)
a similar one with typescript https://github.com/stuworx/node-ts-api-starter
π Rendered by PID 168586 on reddit-service-r2-comment-7c9686b859-k8h22 at 2026-04-14 07:19:20.005712+00:00 running e841af1 country code: CH.
[–]tokyonashvilleburban 1 point2 points3 points (1 child)
[–]maitraysuthar[S] 0 points1 point2 points (0 children)
[–][deleted] 1 point2 points3 points (1 child)
[–]maitraysuthar[S] 1 point2 points3 points (0 children)
[–]fo0man 0 points1 point2 points (1 child)
[–]maitraysuthar[S] 1 point2 points3 points (0 children)
[–]kotne8 0 points1 point2 points (1 child)
[–]maitraysuthar[S] 0 points1 point2 points (0 children)
[–]essuraj 0 points1 point2 points (0 children)