Interested in Express? Unsure how to get started with the MERN (MongoDB, Express.js, React.js, Node.js) ? This tutorial will get you up and running...
Some comments have been hidden by the post's author - find out more
For further actions, you may consider blocking this person and/or reporting abuse
I know it may sound irrelevant, but what is the benefit of [ -Virtualbox:] and how to apply it ?
Is it like virtual environment (venv) in python ?
Hey Bruno! Thats a great question!
I am running a virtual machine using Oracles VirtualBox. I use this as my sandbox for all of my dev work and sometimes even use virtual environments like venv and docker containers within this virtual machine!
It is somewhat similar to a virtual environment, however it differs because it is designed to function as a full virtualized operating system! You can install different Linux distros and even MacOS and use it as you would a regular computer.
If you want to check out what virtualbox is and how to use it I'll be making a post about it very soon!
With Win10 you can do in WSL2 whatever you are doing in Virtual Box I think
I like to keep my environments separated :)
I feel I've written this boilerplate too many times... isn't there a mongoose-restful or some such library? Like postgREST you get an API just from your table migrations...
postgrest.org/en/v7.0.0/
edit - well I guess just using this wouldn't make a very educational article :/
npmjs.com/package/mongoose-rest-api
Hey Brandon, one small fix
exports.deleteOneRequest is missing the async in the above snippet, so if you run it, you get a syntax error with regards to the await below it.
HTH
Hey Harry! Thanks for commenting. I appreciate the keen eye and I've updated the code snippet ! 😄
Great post. One question: In the updateOneRequest function where the {slug} came from?
Hey Rick, Nice catch! that was an oversite on my part! it should read : {_id:id} not {slug}! my apologies!
Nice post short and concise.
Thanks Andrew!
Hi, I think, some were in
/server/controllers/user.controller.js
is required "usermodel"
?
Hi Filoret, You're totally right, nice catch! I will update that section now ! 😄
Very cool post 👍 thanks.
You're very welcome Calagan! I hope I was able to provide some value for your time! 😄
Thank you Max! I'm hoping to improve with each post 😅