How to start SPA with nodejs? What next ?

Posted September 29, 2015 5.4k views

Hello, i am new with VPS and ubuntu. Can you explain me step by step what i must to do for start work with nodejs+mongo+express+angular stack?
I mean:
1) i create droplet with nodejs 4.1
2) I update npm to latest version
3) install build-essentials
4)Create new user and add him to root gruop
What next? install and setting nginx?
Where to place index.html files and other?
I rly don’t know. I created and destroyed about 10 droplet and can`t setting them to start learn this JS stack.
Very thank for answers.

edited by kamaln7
1 comment

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

This question was answered by @shobhitmshr002:

Can you follow:

Also if you are interested to use MEAN stack then I can suggest something,comment if interested.

View the original comment

by myusuf91
In this tutorial, we will set up a NodeJS server with SailsJS as the framework to manage our code. We will use DustJS for isomorphic templates used on both the client and the server.
  • Hi, i just installed one click MEAN
    ran grunt
    Running “env:dev” (env) task

    Running “sass:dist” (sass) task

    Running “less:dist” (less) task

    Running “eslint:target” (eslint) task

    Running “csslint:all” (csslint) task

    3 files lint free.

    Running “mkdir:upload” task

    Running “copy:localConfig” (copy) task
    Copied 1 file

    Running “concurrent:default” (concurrent) task
    Running “watch” task
    Running “nodemon:dev” (nodemon) task
    [nodemon] 1.9.1
    [nodemon] to restart at any time, enter rs
    [nodemon] watching: gruntfile.js modules//server/views/.html server.js config//.js modules//server//.js modules//server/config/*.js
    [nodemon] starting node --debug server.js
    Debugger listening on port 5858

    MEAN.JS - Development Environment
    Environment:     development
    Database:        mongodb://localhost/mean-dev
    App version:     0.5.0-beta
    MEAN.JS version: 0.5.0-beta


    going to http://http// and nothing