This project is a web application that uses Svelte for the frontend and Django for the backend.
Clone the Repository
git clone <your-repo-url>
cd <your-repo-directory>
Set up Python virtual environment
If you're using virtualenv
:
python -m venv venv
source venv/bin/activate # On Windows use: venv\Scripts\activate
Install Django and other dependencies
pip install -r requirements.txt
Apply Migrations
python manage.py makemigrations
python manage.py migrate
Run Django Development Server
python manage.py runserver
The Django server will be running at: http://127.0.0.1:8000/
Navigate to the frontend directory
cd frontend
Install dependencies
npm install
Run the Svelte Development Server
npm run dev
The Svelte app will be running at: http://localhost:5173/
Start the Django server (in the backend folder):
python manage.py runserver
Start the Svelte development server (in the frontend folder):
npm run dev
You should now be able to access the application at http://localhost:5173/
, with the Django backend serving data and APIs.