Skip to content

Setup Instruction for Windows

jizhenz edited this page Jun 21, 2013 · 8 revisions

Here is the instruction to setup the Job Board project on Windows:

  1. 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
    
  2. Install Node.js and npm (Node Package Manager):

    Go to http://nodejs.org/, download and install Node.js, npm will be included.

  3. Download and install GitHub for windows:

    http://windows.github.com/help.html

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

  5. Install the app:

    cd app npm install

  6. Start the app:

    node app.js

    You can navigate to the app's URL: http://localhost:3000/

Clone this wiki locally