A simple and intuitive Django-based web application for creating, reading, updating, and deleting sticky notes. This project demonstrates the implementation of CRUD (Create, Read, Update, Delete) functionality using Django's Model-View-Template (MVT) architecture.
- Create Notes: Add new sticky notes with a title and content.
- Read Notes: View a list of all notes and their details.
- Update Notes: Edit existing notes to update their title or content.
- Delete Notes: Remove notes that are no longer needed.
- Unit Tests: Includes comprehensive unit tests for models and views
- Backend: Django (Python)
- Frontend: HTML, CSS, Bootstrap
- Database: SQLite (default Django database)
- Testing: Django TestCase
This document describes the design of the Sticky Notes application using Use Case, Sequence, and Class diagrams.
The Use Case Diagram illustrates the main interactions between the user and the system.
The Sequence Diagram shows the flow of actions when a user creates a new note
The Class Diagram represents the structure of the application's models and views
- Clone the repository:
git clone https://github.com/LesiaUKR/django_sticky_notes_project.git
- Navigate to the project directory:
cd sticky_notes_django_project
- Create a virtual environment and activate it:
python -m venv myenv
source myenv/bin/activate # On Windows: myenv\Scripts\activate
- Install the required dependencies:
pip install -r requirements.txt
- Navigate to the sticky_notes directory:
cd sticky_notes
6Apply migrations:
python manage.py migrate
- Run the development server:
python manage.py runserver
- Open your browser and navigate to http://127.0.0.1:8000.
To run the unit tests, use the following command:
python manage.py test notes