Doctor Booking System
- Python 3.8+ installed
- Text editor such as vs code or sublime text
- Git - preferrably use terminal like gitbash
-
Clone the repository.
-
Change directory to the location of this repository.
-
Create a
.env
file using the included.env.example
as an example. -
Generate a secret key for your app and paste into the SECRET_KEY section of .env file you can find generate the key from here
-
Create and start your preferred Python virtual environment. For more information on how to set up a virtual environment, check the instructions on this link. Install the required libraries by running the commands below, by changing to the project directory.
pip install -r requirements.txt
-
After installation, run the following command:
python manage.py migrate
-
A local
dbsqlite
file will be generate at the root of the project. -
Create a superuser by running the
python manage.py createsuperuser
and fill in the details. -
After creating superuser run
python manage.py runserver
open the browser and run127.0.0.1:8000/admin
, login with the credentials created. -
For details of how to get started with django, check out this link
-
In order to work with a virtual environment, check out this link
To run locally:
python manage.py runserver
Pull the latest master version:
git pull origin master
Create local development branch and switch to it:
git branch {feature_branch_name}
git checkout {feature_branch_name}
Make desired changes then commit the branch.
git add .
git commit -m "changes to{feature_branch_name}"
git push origin {feature_branch_name}