https://github.com/wallarug/avr-web-compiler
https://github.com/wallarug/avr-web-compiler
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/wallarug/avr-web-compiler
- Owner: wallarug
- Created: 2023-07-31T12:57:25.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2023-07-31T12:57:53.000Z (almost 3 years ago)
- Last Synced: 2025-04-06T15:51:02.424Z (about 1 year ago)
- Language: Python
- Size: 11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Welcome to the AVR Web Compilation project #
# Required Software via apt-get #
```
#!Bash
apt-get install libmysqlclient-dev
apt-get install mysql-server
apt-get install django
apt-get install phpmyadmin
apt-get install python-virtualenv
```
# Programs to install in virtual env #
**NOTE:** if you download this repo, you get a preconfigured virtualenv with all the required packages.
```
#!Bash
pip install mysqlpython
pip install django-braces
pip install django-class-based-auth-views
pip install pyserial
```
# Configure PHPMyAdmin #
```
#!Bash
nano /etc/apache2/apache2.conf
Include /etc/phpmyadmin/apache.conf
/etc/init.d/apache2 restart
```
# Configure Virtual Env #
```
#!bash
# to set up initially (DO NOT DO IF YOU CLONE)
virtualenv venv
# to run virtual env
source venv/bin/activate
# to close virtual env
deactivate
```
# Configure Django to use MySQL #
**settings.py**
```
#!python
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.mysql',
'NAME': '',
'USER': '',
'PASSWORD': '',
'HOSTS': 'localhost',
}
}
```
# Configuring Apache2 to run Server #
```
#!bash
apt-get install apache2 apache2-prefork-dev
wget https://github.com/GrahamDumpleton/mod_wsgi/archive/4.4.21.tar.gz
tar xzvf 4.4.21.tar.gz
cd 4.4.21
./configure
make
make install
```
**Edit apache2.conf**
```
#!bash
# Django Configuration for WSGI mod
WSGIScriptAlias /avr /home/django/avr-web-complier/webavr/webavr/wsgi.py
WSGIPythonPath /home/django/avr-web-compiler/webavr:/home/django/avr-web-compiler/venv/lib/python2.7/site-packages
Order deny,allow
Allow from all
```