Film-List_Svelte_Django Svelte Themes

Film List_svelte_django

Film-List_Svelte_Django Web Appplication

This project is a web application that uses Svelte for the frontend and Django for the backend.

Table of Contents

Backend Setup (Django)

  1. Clone the Repository

    git clone <your-repo-url>
    cd <your-repo-directory>
    
  2. Set up Python virtual environment

    If you're using virtualenv:

    python -m venv venv
    source venv/bin/activate  # On Windows use: venv\Scripts\activate
    
  3. Install Django and other dependencies

    pip install -r requirements.txt
    
  4. Apply Migrations

    python manage.py makemigrations
    
    python manage.py migrate
    
  5. Run Django Development Server

    python manage.py runserver
    

The Django server will be running at: http://127.0.0.1:8000/

Frontend Setup (Svelte)

  1. Navigate to the frontend directory

    cd frontend
    
  2. Install dependencies

    npm install
    
  3. Run the Svelte Development Server

    npm run dev
    

The Svelte app will be running at: http://localhost:5173/

Running the Application

  • 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.

Credits

Svelte and Django App by BugBytes
BugBytes

Top categories

Loading Svelte Themes