https://github.com/devssh/codechamp-protoypes
https://github.com/devssh/codechamp-protoypes
Last synced: 10 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/devssh/codechamp-protoypes
- Owner: devssh
- Created: 2017-07-08T19:33:44.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-07-08T19:34:03.000Z (over 8 years ago)
- Last Synced: 2024-12-29T19:09:38.035Z (about 1 year ago)
- Language: Python
- Size: 4.96 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## Instructions to setup code champ application on your Mac ##
* Open Terminal
* Signin as root user by using
```
sudo -i
```
* Clone the git repository in the Webserver's root directory
```
cd /Library/WebServer/Documents
git clone
mv codechamp_prototypes Codechamp
```
## Configuring your apache server ##
* Take a backup of your existing httpd.conf file by using the command
```
cp /etc/apache2/httpd.conf /etc/apache2/httpd.conf.backup
```
**Note : This is only to be on the safer side
* Copy replace the httpd.conf file in /etc/apache2/httpd.conf with the configuration file present in the repository
```
cp Codechamp/httpd.conf /etc/apache2/httpd.conf
```
** The httpd.conf file in Codechamp repository has configuration to enable CGI scripts on Apache server and the it points to the /cgi-bin to Codechamp/cgi-scripts
* Now restart your apache server using
```
apachectl restart
```
***
Now check in the browser if the the application is running to do this
* Open browser
* Go to : http://localhost/Codechamp/code_viz.html
You should now be able to view the application :-)
***
To be able to clone the repository from next time without using sudo just change the ownership of the Codechamp repository
** Please remember that the codechamp repository will be present at /Library/Webserver/Codechamp
```
sudo chown -R /Library/Webserver/Documents/Codechamp
```
** To know your user-name you can use the below command
```
whoami
```