Skip to content

The-Ofek-Foundation/theofekfoundation.org

Repository files navigation

Ofek Gila's Official Website

What it is

(https://www.theofekfoundation.org) is my personal website with plenty games (most of which with super strong AIs) and some neat tools as well.

What this repository is

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)!

How to get started (for Ubuntu/Linux Mint)

Step 1: Install dependencies

  1. Python 2.7.*, setuptools, pip

  2. 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

Step 2: Setup repository

  1. 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
  1. Run migrations and populate pages

    python2.7 manage.py migrate
    python2.7 populate_pages.py

Step 3: Setup local settings

  1. Copy barebone settings from barebones_local_settings.py

    cp -v TheOfekFoundation/barebones_local_settings.py TheOfekFoundation/local_settings.py
  2. Optional: Override email settings with your own testing email account (only necessary if testing forgot password feature)

And that's it!

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.

And view the website live here or here!

Releases

No releases published

Packages

No packages published