-
Install MySQL in your machine if you haven't and switch to MySQL Administrative User to perform administrative tasks.
mysql -u root
-
Create Database Gladys for the project.
CREATE DATABASE Gladys;
-
Select the created database.
USE Gladys;
-
You can see all tables here once you have applied all the migrations which are discussed later.
-
Exit out of MySQL shell session.
exit;
If you have any problems, go through this video. Similar procedure can be used for Windows and macOS.
-
Fork this repository.
-
Install virtual environment if you haven't and create a virtual environment on your machine.
virtualenv -p python3 env
-
Activate the newly created virtual environment.
cd env source bin/activate
-
Clone this repository (this would make rebasing easier).
git clone https://github.com/deepaktiwari88/Gladys.git
-
Install the dependencies for the project.
cd Gladys pip3 install -r requirements.txt
-
Run the migrations and collect static files.
python3 manage.py migrate python3 manage.py collectstatic
-
Run the live development server on your machine and test it.
python3 manage.py runserver
Once the server is started, open http://127.0.0.1:8000 in a web browser. Everything went well if the webpage loads correctly and you don't see any errors.
-
Add a remote to your forked repository. This remote will be needed to push your changes to your repo.
git remote add myfork https://github.com/<username>/Gladys.git