Project Setup Tutorial
Another set of instructions are needed for the mac environment, if anyone would be willing to contribute this content.
Downloading the code (advanced):
- Download and install MAMP/WAMP (MAMP is for Mac or WAMP for Windows).
- Download and install Git (Windows / Mac).
- On Windows launch 'Git Bash'. On mac launch 'Terminal' which you can find using spotlight (Apple + Space)
- If you are in Mac or Windows 7, Type: cd desktop (this will move you to the desktop folder)
- Type: git clone iwdsa@iwdsa.org:git/legacy.git
- When prompted for a password, type: calpoly (you will not see the characters appear, just hit Enter when you typed the whole password)
- There should now be a folder titled 'legacy' on your desktop.
- 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
- You can download the project files by openning your browser and going to: idwsa.org/uploads/legacy.zip
- 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.
- Once the project has been imported or downloaded and moved to the proper folder.
Setup the project (Mac users skip this)
- Start up your MAMP/WAMP server and open up a browser.
- Type 'localhost' into the address bar to see the MAMP/WAMP server interface.
- To check if the project is in the proper location, click legacy under Your Projects.
- You should see something, if you see any errors or warnings, this is normal.
- 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.
- The option for the rewrite_module can be found under Apache -> Apache modules -> rewrite_module.
- Once the rewrite_module is checked, try reloading the project in the web browser. This time, you should see colors.
Loading the database
- To do this, open up your MAMP/WAMP folder and go to legacy\app\config\sql
- Open dump.sql and copy everything.
- Next, open an internet browser and go to http://localhost/phpmyadmin/
- In the text field labeled 'Create new database' type 'legacy' and press enter.
- You should now have created a new database titled 'legacy',
- Then, click on the SQL tab.
- Paste everything you copied from dump.sql into the available field and press Go.
- If done correctly, you should see a confirmation that the database has been created.
Connecting to the database
- Go to your web directory (www folder) and go to legacy folder then app/config
- You will see a file called 'database.php.default'. Duplicate this file and rename the new file 'database.php'
- Open the file in your text editor and scroll to the bottom
- Change the values on the right to the values for your server
Login: 'root' Password: 'root' (MAC) '' (Leave empty for Windows) Database: 'legacy'
