--> Clone the repository using command below :
git clone https://github.com/JordanMarcelino/software-pplbo.git
--> Move into the directory :
cd software-pplbo
--> Create a virtual environment :
# Install virtualenv first
pip install virtualenv
# Then create virtual environment
virtualenv .venv
--> Activate the virtual environment :
.venv\Scripts\activate
--> Install the requirements :
pip install -r requirements.txt
Before running the app, make sure you have downloaded PostgreSQL and created two database with name sistem_antrian_klinik and sistem_antrian_klinik_test
--> Make .env file :
touch .env
--> Copy this into .env file and fill it with your config :
DB_NAME=sistem_antrian_klinik
DB_NAME_TEST=sistem_antrian_klinik_test
DB_USER=<user>
DB_PASSWORD=<password>
DB_HOST=localhost
DB_PORT=5432
SECRET_KEY=<secret_key>
EMAIL_HOST_USER=<gmail>
EMAIL_HOST_PASSWORD=<app_password>
RECAPTCHA_PUBLIC_KEY=<site_key>
RECAPTCHA_PRIVATE_KEY=<secret_key>
Database user name
Database user password
Django secret key
Gmail account
Gmail app password, not gmail account password. To create this password go to google account settings, security, app password, create an app password and choose email option for application and others for devices, then copy the password
Recaptcha site key, to get this key, register a new site at https://www.google.com/recaptcha/admin/create
Recaptcha secret key
--> To run the tailwind, we use :
# Install the dependencies
python manage.py tailwind install
# Run the tailwind
python manage.py tailwind start
If there is error when running the tailwind command, you need to change the NPM_BIN_PATH that is located in settings.py to your npm path
--> To run the database migrations, we use :
# Testing mode
python manage.py makemigrations --settings pendaftaran_pasien.test_settings
python manage.py migrate --settings pendaftaran_pasien.test_settings
# Production mode
python manage.py makemigrations --settings pendaftaran_pasien.settings
python manage.py migrate --settings pendaftaran_pasien.settings
--> To run the App, we use :
# Testing mode
python manage.py runserver [port] --settings pendaftaran_pasien.test_settings
# Production mode
python manage.py runserver [port] --settings pendaftaran_pasien.settings
You can now access the server at http://localhost:[port]
git clone https://github.com/JordanMarcelino/software-pplbo.git
cd software-pplbo
pip install virtualenv
virtualenv .venv
.venv\Scripts\activate
pip install -r requirements.txt
touch .env
python manage.py tailwind install
python manage.py tailwind start
python manage.py makemigrations --settings pendaftaran_pasien.settings
python manage.py migrate --settings pendaftaran_pasien.settings
python manage.py runserver [port] --settings pendaftaran_pasien.settings