generator-angular-fullstack
  • The Angular Full-Stack Generator
  • Getting Started
    • Pre-Requisites
    • Installation
    • Running
    • Project Overview
  • Developing
    • Overview
    • Adding a Route
  • Deployment
    • Manual Deployment
    • Google Cloud Deployment
    • index
  • Generators
    • App
    • Endpoint
  • Contributing
    • Releasing a New Version
    • Commit Style
Powered by GitBook
On this page
  • npm modules
  • MongoDB
  • node-gyp
  • Create a new folder for your project

Was this helpful?

  1. Getting Started

Pre-Requisites

PreviousThe Angular Full-Stack GeneratorNextInstallation

Last updated 5 years ago

Was this helpful?

npm modules

Make sure you have all the required Node dependencies available:

npm install -g yo gulp-cli generator-angular-fullstack

MongoDB

If you're using MongoDB (which you probably are), you'll have to install it from . You should then run the mongod process, which is in <install_path>/MongoDB/Server/<version>/bin/. You'll also want a /data/db folder somewhere for Mongo to put your database in. It would be wise to make a script to automate this command, and maybe even run this script on your computer's startup. Example:

#!/bin/bash

/var/lib/mongo/server/3.2/bin/mongod --dbpath /data/db

node-gyp

node-gyp is a cross-platform command-line tool written in Node.js for compiling native addon modules for Node.js. You'll need it for things like uws.

Read through the . Basically you'll need , make, and a C/C++ compiler (like GCC on unix, Xcode on OS X, or Visual Studio tools on Windows). To tell npm to use Python 2.7 (if you also have a different version installed), run npm config set python /path/to/executable/python2.7. Here's a snapshot of the instructions from their readme:

  • On Unix:

    • python (v2.7 recommended, v3.x.x is not supported)

    • make

    • A proper C/C++ compiler toolchain, like

  • On Mac OS X:

    • python (v2.7 recommended, v3.x.x is not supported) (already installed on Mac OS X)

      • You also need to install the Command Line Tools via Xcode. You can find this under the menu Xcode -> Preferences -> Downloads

      • This step will install gcc and the related toolchain containing make

  • On Windows:

    • Option 1: Install all the required tools and configurations using Microsoft's using npm install --global --production windows-build-tools from an elevated PowerShell or CMD.exe (run as Administrator).

    • Option 2: Install tools and configuration manually:

      • Visual C++ Build Environment:

        • Option 1: Install using the Default Install option.

        • Option 2: Install (or modify an existing installation) and select Common Tools for Visual C++ during setup. This also works with the free Community and Express for Desktop editions.

        :bulb: [Windows Vista / 7 only] requires

      • Install (v3.x.x is not supported), and run npm config set python python2.7 (or see below for further instructions on specifying the proper Python version and path.)

      • Launch cmd, npm config set msvs_version 2015

    If the above steps didn't work for you, please visit for additional tips.

Create a new folder for your project

Make a new directory, and cd into it:

mkdir myapp && cd $_
here
Installation section of the node-gyp readme
Python 2.7
GCC
Xcode
windows-build-tools
Visual C++ Build Tools
Visual Studio 2015
.NET Framework 4.5.1
Python 2.7
Microsoft's Node.js Guidelines for Windows