E1f19cf8475094b78f39528042603a4ca2f248ea
By:
valon1x

How to start SPA with nodejs? What next ?

September 29, 2015 1.7k views
Node.js MEAN

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
5).....
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.

1 comment
1 Answer

This question was answered by @shobhitmshr002:

Can you follow:
https://www.digitalocean.com/community/tutorials/how-to-build-spas-single-page-applications-using-nodejs-sailsjs-and-dustjs-in-ubuntu-14-04

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
    Waiting...
    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
    Server:          http://0.0.0.0:3000
    Database:        mongodb://localhost/mean-dev
    App version:     0.5.0-beta
    MEAN.JS version: 0.5.0-beta
    --
    

    ^Croot@baturin:/opt/mean#

    going to http://http//146.185.181.100:3000/ and nothing

Have another answer? Share your knowledge.