codeTech Computer Club was founded at Mira Costa College Oceanside in early-2013. Our goal was to bring together students, graduates, teachers, and industrymen, all who were aspiring to enter or who had experience in technology fields. We would share our knowledge and build great things together.
codeTech's website serves a few purposes:
- To allow prospective members to learn about and join the club.
- To allow members to collaborate and communicate with each other.
- To allow members to track the progress of projects, start their own, and share them with members, friends, employers.
- To provide software and tutorials as resources.
This project is led by Jackson Ray Hamilton ([email protected]). Email him if you want to help out!
Further contact info is also available on our Contact page.
The website has dependencies that need to be installed with Composer.
You should open php.ini, Ctrl+F for display_errors, and set it to True. This
way PHP will actually throw errors, which will make the installation process
easier in case anything goes wrong.
- Have git and php installed.
- Debian:
sudo apt-get install git php5 - Mac (using Homebrew):
brew install git
- Debian:
- Open a terminal and issue the following commands:
git clone https://github.com/codetech/codetechcomputerclub.git
cd codetechcomputerclub
php bin/composer.phar installMake the cache writable:
sudo chmod -R 777 app/tmp/cache/You might also need to enable mod_rewrite:
sudo a2enmod rewrite && sudo service apache2 restart- Install PHP if you haven't already.
- Download and extract the website's archive.
- Open a command prompt and navigate to the
codetechcomputerclubfolder you just extracted. - Issue the following command, but replace
c:\php\php.exewith your path tophp.exe. (Figure out where it is.)
c:\php\php.exe bin\composer.phar installIf the above command doesn't work, install Composer on your system and then (in the codetechcomputerclub folder) issue the following command:
composer install- A database schema is located at
bin/database.sql. Run the commands contained therein to set up the website's database.- In bash, you can issue the command
mysql < bin/database.sql. - In phpMyAdmin, you can click the "SQL" tab at the top of any page, copy and paste the contents of
database.sqlinto the "Run SQL query/queries" form, and click "Go". - Or look up "how to execute SQL queries in MySQL".
- In bash, you can issue the command
- Make a copy of
app/Config/database.php.defaultnameddatabase.php. Fill out your credentials in the$developmentarray, and change the__construct()function if you want to use a ServerName other thanlocalhostorctcc.local.
Open up /etc/apache2/apache2.conf, or httpd.conf (wherever it may be on your system), or create a new virtual host.
- If editing
apache2.conforhttpd.conf, make sure the following components and the<Directory>directive are included. Your paths will probably differ.
DocumentRoot "/var/www/app/webroot"
SetEnv CAKEPHP_DEBUG 1
<Directory "/var/www">
AllowOverride all
Order allow,deny
Allow from all
Require all granted
</Directory>- If creating a virtual host (your paths will probably differ):
<VirtualHost *>
DocumentRoot "/var/www/ctcc/app/webroot"
ServerName ctcc.local
SetEnv CAKEPHP_DEBUG 1
<Directory "/var/www/ctcc">
AllowOverride all
Order allow,deny
Allow from all
Require all granted
</Directory>
</VirtualHost>- And also, if using virtual hosts:
- Make sure to add
ctcc.localto the/etc/hostsfile (Linux / Mac), or theC:\Windows\System32\drivers\etc\hostsfile (Windows). - Make sure to properly enable virtual hosts in
apache2.conforhttpd.conf. (This process is different for every system, so have fun Googling.)
- Make sure to add
- Make a copy of
app/Config/email.php.defaultnamedapp/Config/email.php. - Fill out your Google credentials in the
$gmailarray.- This file is untracked, so don't worry about your credentials leaking out.