/ro-chess

Primary LanguagePython

JWT Authentication

About

Server side AI based chess game. Client _

Install & Set Up

Python Virtual Environment Set Up

pip install virtualenv
virtualenv venv
souce venv/bin/activate

Install the project dependencies:

pip install requirements.txt

Django Environment Configurations

Run in terminal inside virtual environment.

Local Env:

export DJANGO_SETTINGS_MODULE=django_chess.settings.localdev

Production Env:

export DJANGO_SETTINGS_MODULE=django_chess.settings.production

For a more permenant solution edit file /manage.py:

os.environ.setdefault("DJANGO_SETTINGS_MODULE", "django_chess.settings.localdev")

Database Set Up

python manage.py makemigrations
python manage.py migrate

Run

python manage.py runserver