-
Clone this repo and change to the directory of the project.
-
Install the project dependencies by running the following command:
$ pipenv install --dev
-
Make sure the MySQL Server is up and running.
-
Create a new database. (Example:
woreket_tracker_db) -
At the project root directory, there is a file named
.env_example. Copy the file and rename the copy as.env. -
Open the
.envfile in a text editor and add the following line.SECRET_KEY='<django secret key>' DB_NAME='woreket_tracker_db' DB_USER='<database user name>' DB_PASSWORD='<database user password>' DB_HOST='<host>' DJANGO_SETTINGS_MODULE='<setting module path. Eg. config.settings.local>'
TIP: To generate a unique secret key value, you can use this website.
-
Save the file.
-
Run fixtures to load initial data.
$ python manage.py runfixtures
-
Run the following commands to setup database schema and to create dummy data:
$ python manage.py migrate
-
Run the following command to create an
adminuser:$ python manage.py defaultsuperuser
-
Run the following command to run the development web server:
$ python ./manage.py runserver 0.0.0.0:8000
-
Open a web browser and go to: http://localhost:8000/admin