A basic startup site for Node.js and Gulp
These installation instructions are assuming you already have Node.js installed. If you don't, then please visit https://nodejs.org/en/download/ to download and install Node.js. Doing so will also install npm which is used for package management with Node.js.
To install this website:
On Windows:
-
Open
cmd.exe -
Navigate to the folder to install project (username is your username. This directory can be whatever you want):
cd C:\Users\{username}\Documents\Projects
- Clone the git repository:
git clone git@github.com:amlconsulting/TestSite.git
- Navigate into cloned directory:
cd TestSite
- Install package dependencies: This will install everything you need to use the application as is.
npm install.
- Use Gulp to compile SASS and TypeScript, and create a buildable release. This will use BrowserSync to open your browser for site review. Using BrowserSync will allow you to make changes to your .scss, .ts, and .html files, and the browser will automatically update. To exit gulp and shut down the BrowserSync connection, type Ctrl+C to exit.
gulp
-
To deploy to IIS:
-
Open ISS and create a new site, and point the application directory to your projects
build/Releasefolder. -
Go back to your command prompt and type the following to deploy site to IIS.:
gulp deploy-to-iis- Open your browser and navigate to your site's URL (whatever you created it IIS) and the site should open up.
-