Project Setup Tutorial

Last Edited: 1 month ago

Another set of instructions are needed for the mac environment, if anyone would be willing to contribute this content.

Downloading the code (advanced):

  1. Download and install MAMP/WAMP (MAMP is for Mac or WAMP for Windows).
  2. Download and install Git (Windows / Mac).
  3. On Windows launch 'Git Bash'. On mac launch 'Terminal' which you can find using spotlight (Apple + Space)
  4. If you are in Mac or Windows 7, Type: cd desktop (this will move you to the desktop folder)
  5. Type: git clone iwdsa@iwdsa.org:git/legacy.git
  6. When prompted for a password, type: calpoly (you will not see the characters appear, just hit Enter when you typed the whole password)
  7. There should now be a folder titled 'legacy' on your desktop.
  8. Move the folder titled legacy to the www folder found in the MAMP/WAMP install directory.

Downloading the code (simple):

This zip file must be updated manually by the developers and will be harder to upgrade your code. Its recommended you use the advanced method if possible

  1. You can download the project files by openning your browser and going to: idwsa.org/uploads/legacy.zip
  2. If you download the project this way, simply extract the contents to a folder titled legacy to the www or htdocs folder found in the MAMP/WAMP install directory.
  3. Once the project has been imported or downloaded and moved to the proper folder.

Setup the project (Mac users skip this)

  1. Start up your MAMP/WAMP server and open up a browser.
  2. Type 'localhost' into the address bar to see the MAMP/WAMP server interface.
  3. To check if the project is in the proper location, click legacy under Your Projects.
  4. You should see something, if you see any errors or warnings, this is normal.
  5. You should also see colors. If you do not, you need to turn on rewrite_module, which can be found under the WAMP icon in the system tray.
  6. The option for the rewrite_module can be found under Apache -> Apache modules -> rewrite_module.
  7. Once the rewrite_module is checked, try reloading the project in the web browser. This time, you should see colors.

Loading the database

  1. To do this, open up your MAMP/WAMP folder and go to legacy\app\config\sql
  2. Open dump.sql and copy everything.
  3. Next, open an internet browser and go to http://localhost/phpmyadmin/
  4. In the text field labeled 'Create new database' type 'legacy' and press enter.
  5. You should now have created a new database titled 'legacy',
  6. Then, click on the SQL tab.
  7. Paste everything you copied from dump.sql into the available field and press Go.
  8. If done correctly, you should see a confirmation that the database has been created.

Connecting to the database

  1. Go to your web directory (www folder) and go to legacy folder then app/config 
  2. You will see a file called 'database.php.default'. Duplicate this file and rename the new file 'database.php'
  3. Open the file in your text editor and scroll to the bottom
  4. Change the values on the right to the values for your server
    Login: 'root' Password: 'root' (MAC) '' (Leave empty for Windows) Database: 'legacy'