-
Notifications
You must be signed in to change notification settings - Fork 21
Getting Started with Windows
&y edited this page Oct 26, 2016
·
28 revisions
- Install Node.js
- Install Git for Windows
- Choose the defaults EXCEPT:
- Choose to use a TrueType font in all Windows console
- choose to "use Git from the Windows Command Prompt", otherwise the provision scripts will fail.
- choose to use the Windows default console
- Choose the defaults EXCEPT:
- Run powershell as an Administrator (
Start
, type, "powershell", right-click, "run as administrator") - Navigate to a directory where you want to clone the project (i.e.
D:
,mkdir dev
,cd dev
). - Clone the repo:
git clone https://github.com/losandes/Heinz95729.git
- Make sure your powershell execution policy allows running scripts
$currentPolicy = Get-ExecutionPolicy
echo $currentPolicy
Set-ExecutionPolicy RemoteSigned
- When you're done with the rest of the steps in this tutorial, you can reset your execution policy (which is probably: restricted):
Set-ExecutionPolicy $currentPolicy
- Navigate to the provision scripts:
cd Heinz95729\provision\windows
- Review the
provision-*
scripts, and comment out any applications that you already have installed - Execute the first provision script:
./provision-1
- Run Powershell as Administrator
- Navigate to the directory where "provision-2.ps1" is
- Execute the second provision script:
./provision-2
- Run Powershell as Administrator
- Execute the third provision script:
./provision-3
- Install Mongo Management Studio
- Open
cmder
from your start menu, and open 2 cmd tabs - In the first one, type
mongod
, to start mongo - In the second one, navigate to
[YOUR PATH HERE]\Heinz95729\node
- Install the build dependencies:
npm install
- Check out what grunt can do:
grunt
orgrunt help
- Install the app dependencies:
grunt install
- If
grunt install
fails because it cannot find powershell, and you don't want to figure out how to get powershell to be available in your PATH, you can manually install the packages:- Navigate to
/node/web
and runnpm install
from the command line - Navigate to
/node/web/public/scripts/lib
and runbower install
from the command line
- Navigate to
- If
- Seed the database:
grunt seed
- Run the app:
grunt start
- In a browser, navigate to http://localhost:3000/