Set up MEAN application with of my own directory structure

September 23, 2016 110 views
Node.js MongoDB MEAN

Hello Team,

While setting up droplet I selected mongodb one click install droplet and then installed nodejs, domain and ssl certificate manually which works great and also able to access the url that setup.

Now I have application without grunt or gulp which build on MEAN stack. Can some one guide me as to how I can set up this application. Below link helps little bit but not completely since this link uses MEAN one click image to setup droplet.

What should I do be able to install the app as MEAN with existing droplet where I have nodejs and mongdb setup perfectly. Look forward to hear from you.

Kind Regards !

1 Answer


You can install your project as you normally would. Clone the repo or upload the project files in some way, run npm install, and then npm start. You can use PM2 to manage the app's node process(es) and start it automatically on startup:

Since you already have Node.js installed, you can skip right to the Install PM2 section of the tutorial. Keep in mind that depending on how you installed Node.js, you might or might not need to use sudo with npm.

Let me know how it goes!

Node.js is an open source JavaScript runtime environment for easily building server-side and networking applications. Node.js applications can be run at the command line but this guide focuses on running them as a service using PM2, so that they will automatically restart on reboot or failure, and can safely be used in a production environment.
  • hey kamaln,

    I was able to configure with out any hassel. Thank you for your direction. I can start my app using pm2. I had bit of challenge to start the app using pm2 earlier but then I resolved with one of the stackoverflow pointer and with DO's support ticket. Thank you again.

    Kind Regards,

Have another answer? Share your knowledge.