(https://www.theofekfoundation.org) is my personal website with plenty games (most of which with super strong AIs) and some neat tools as well.
I wholeheartedly believe in open-sourcing code, so the code for my website is and will always be public. Feel free to fork some of my projects and improve them (each game/tool is in its own submodule)!
-
Python 2.7.*, setuptools, pip
-
django (1.11.*), minidetector, jsonfield, social-aut-app-django, and django-cors-headers with pip
pip2.7 install django==1.11.5 pip2.7 install minidetector pip2.7 install jsonfield==1 pip2.7 install social-auth-app-django pip2.7 install django-cors-headers pip2.7 install django-etc==0.10.0
-
Clone the repository from here recursively, e.g.:
git clone https://github.com/The-Ofek-Foundation/theofekfoundation.org.git --recursive
If you forgot to clone recursively, you can pull submodules like so:
git submodule init
git submodule update --recursive
-
Run migrations and populate pages
python2.7 manage.py migrate python2.7 populate_pages.py
-
Copy barebone settings from barebones_local_settings.py
cp -v TheOfekFoundation/barebones_local_settings.py TheOfekFoundation/local_settings.py
-
Optional: Override email settings with your own testing email account (only necessary if testing forgot password feature)
Start running with:
python2.7 manage.py runserver
Note that if you are testing with DEBUG = False (e.g. when testing out the 404 error page), be sure to run with the --insecure parameter, e.g.:
python2.7 manage.py runserver --insecure
If you want to edit stylesheets, be sure to edit the .less files and not the .css files. LESS files compile into CSS. The syntax is pretty similar, but a bit more intuitive in my opinion. In order to compile the LESS files, install lessc using:
sudo apt-get install node-less
and then run:
bash lessc
# or ./lessc
Also if you add a new LESS file, be sure to update it in the lessc file by mimicking the other lines.