Setting up a nodebb development environment
-
Is there a tutorial somewhere on how to set up a dev environment?
I'm on windows 10.
I know I can install npm/mongo locally and start developing that way, but I understand a lot of people use docker. How would I go about using docker for development? I saw the official docker as well as the one by @ben-lubar, but it didn't seem to come with mongo, nor did I see any volumes that I can mount as local folders to do development.
I know a lot of this is probably me just being a docker n00b, but I was hoping there was an easy to follow tutorial somewhere.
-
@dangeruss Others may chime in but there is a windows version of the install instructions here however, they are out of date. If you are looking to develop, Ubuntu LTS is the most common/supported platform (ie recommended) and the docs are clear, concise and work as expected.
Ive limited experience using Docker and cant see any reference to it on the above website.
good luck
-
@duke said in Setting up a nodebb development environment:
@dangeruss Others may chime in but there is a windows version of the install instructions here however, they are out of date. If you are looking to develop, Ubuntu LTS is the most common/supported platform (ie recommended) and the docs are clear, concise and work as expected.
Ive limited experience using Docker and cant see any reference to it on the above website.
good luck
Thanks I've got it set up, but like you said it's out of date. nodebb watch is not a command as far as I can see.
What's the current way of having it restart when you update files?
-
@dangeruss said in Setting up a nodebb development environment:
What's the current way of having it restart when you update files?
That would be
grunt
-
grunt
isn't installed globally by default, so runnpm i -g grunt
then it will work -
@pitaj said in Setting up a nodebb development environment:
grunt
isn't installed globally by default, so runnpm i -g grunt
then it will workThank you. Once I installed it I could just run grunt and it worked.
It still takes almost 30 seconds to build, but at least it's automatic.
This is probably something seasoned nodejs devs know, n00bs like me not so much.
Would someone mind updating the documentation since nodebb watch doesn't work anymore?