InteractWeb is a project that enables interaction between the physical world and a web application. It allows you to control and monitor the web application using physical devices connected to an Arduino.
The project consists of two main components:
-
Backend: Built with Django, the backend handles the web application's logic, database management, and communication with the Arduino.
-
Frontend: Built with Svelte, the frontend provides the user interface for interacting with the web application and displays real-time data from the Arduino.
To set up and run the InteractWeb project, you'll need the following:
- Python (version 3.6 or higher) installed on your machine.
- Arduino board with the necessary components and sensors.
- Basic knowledge of Django, Svelte, and web development.
Follow these steps to install and set up the project:
-
Clone the repository:
https://github.com/NCRT-DaZZle/InteractWeb
-
Navigate to the project directory:
cd InteractWeb
-
Install the required Python packages. Assuming you have pip installed, run:
pip install -r requirements.txt
-
Set up the Django backend:
-
Migrate the database:
python manage.py migrate
-
Create a superuser (optional):
python manage.py createsuperuser
-
-
Set up the Svelte frontend:
-
Navigate to the
frontend
directory:cd frontend
-
Install the dependencies:
npm install
-
-
Connect the Arduino to your machine and upload the Arduino code located in the
arduino
directory to your Arduino board.
To run the project, follow these steps:
-
Start the Django backend server:
python manage.py runserver
-
Start the Svelte frontend development server:
-
Navigate to the
frontend
directory:cd frontend
-
Start the development server:
npm run dev
-
-
Access the web application by visiting
http://localhost:5000
in your web browser. -
Interact with the physical devices connected to your Arduino, and observe the real-time data and functionality in the web application.
Contributions are welcome! If you have any ideas, suggestions, or bug reports, please create an issue or submit a pull request.
This project is licensed under the MIT License.