Follow these steps to set up the project locally on your machine.
Prerequisites
Make sure you have the following installed on your machine:
Installation
Install the project dependencies using pip
:
pip install -r requirements.txt
python manage.py tailwind install
Installation
Create .env
file in root
folder:
SECRET_KEY="<your_secret_key>"
DATABASE_URL="postgres://<username>:<password>@<hostname>:<port>/<dbname>"
# OPTIONAL
CLOUDINARY_CLOUD_NAME="<your_LOUDINARY_CLOUD_NAME>"
CLOUDINARY_API_KEY="<your_CLOUDINARY_API_KEY>"
CLOUDINARY_API_SECRET="your_CLOUDINARY_API_SECRET"
Running the Project
Update root/Personal_Finace_Tracker/settings.py
file:
DEBUG = True
NPM_BIN_PATH = r"C:\Program Files\nodejs\npm.cmd"
INTERNAL_IPS = [
"127.0.0.1",
]
python manage.py tailwind start
python manage.py migrate
python manage.py runserver
Open http://localhost:8000 in your browser to view the project.