-
Notifications
You must be signed in to change notification settings - Fork 19
Setup Instruction for Windows
Here is the instruction to setup the Job Board project on Windows:
-
Install MongoDB: follow the procedure described here: http://docs.mongodb.org/manual/tutorial/install-mongodb-on-windows/
1.1 download MongoDB from http://www.mongodb.org/downloads and extract to
C:\mongodb-win32-i386-[version] or C:\mongodb-win32-x86_64-[version]
1.2 setup the environment: In a command prompt, in C:/ move C:\mongodb-win32-* C:\mongodb md data md data\db
1.3 start MongoDB: in a command prompt:
C:\mongodb\bin\mongod.exe or if you want the database in a different folder: C:\mongodb\bin\mongod.exe --dbpath d:\test\mongodb\data Note: keep MongoDB running when you testing the gigs app. Connect to MongoDB using the mongo.exe shell. Open notherCommand Prompt and issue the following command: C:\mongodb\bin\mongo.exe The mongo.exe shell will connect to mongod.exe running on the localhost interface and port 27017 by default. At themongo.exe prompt, issue the following two commands to insert a record in the test collection of the defaulttest database and then retrieve that record: > db.test.save( { a: 1 } ) > db.test.find()
1.4 MongoDB as a Windows Service
Create a specific directory for MongoDB log files: md C:\mongodb\log Create a configuration file for the logpath option for MongoDB in the Command Prompt by issuing this command: echo logpath=C:\mongodb\log\mongo.log > C:\mongodb\mongod To install the MongoDB service: C:\mongodb\bin\mongod.exe --config C:\mongodb\mongod.cfg To run the MongoDB service: net start MongoDB To stop the MongoDB service: net stop MongoDB To remove the MongoDB service: C:\mongodb\bin\mongod.exe --remove
-
Install Node.js and npm (Node Package Manager):
Go to http://nodejs.org/, download and install Node.js, npm will be included.
-
Download and install GitHub for windows:
-
Check out the project: From GitHub for windows, right click charlotte-front-end-developers/gigs, you can clone the project to your local repository. Please note you need to
be added to the GIGS group in GitHub (you need to register an account on GitHub if you do not have one yet). -
Install the app:
cd app npm install
-
Start the app:
node app.js
You can navigate to the app's URL: http://localhost:3000/