- Clone the repository using the following command in terminal :
git clone https://github.com/sharifa2708/Checkmate2019.git
- Navigate inside the directory which has manage.py using the following command :
cd Checkmate2019/Checkmate2019
- Activate virtual environment using the following command :
source checkmate-env/bin/activate
- Apply migrations and create a database(db.sqlite3) using following command :
python3 manage.py makemigrations && python3 manage.py migrate
- Run the server using the following command :
python3 manage.py runserver
- To start with the main game, go to the following url in your browser :
http://localhost:8000/game
If you want to use this django app on windows or if the step 3 above is not working on ubuntu then instead of the step 3 written
above for ubuntu do the following step and follow all other steps as it is.
ย Use your custom virtual environment or you can also use the global packages.
Here are the steps for using global packages :
First confirm if you have python-3 and pip installed . If you have these installed then use cd..
twice and use the command
pip3 install -r requirements.txt
. This will
install the required packages. Type the command cd Checkmate2019/Checkmate2019
. Now you can continue from step 4
written for ubuntu.