This Fullstack project is a todos application developed using the Django framework and Django Rest Framework. The app allows users to create and manage todos. It also integrates third-party API data into the todos, making it a dynamic and feature-rich platform.
- Create, edit, and delete todos.
- Third-party API integration for dynamic data.
- Django: Backend framework used for managing models, views, and templates.
- Django Rest Framework: Framework for creat API endpoints.
- MySQL: Database used used in production or not.
- PostgreSQL: Database used in production for reliable data storage.
- Bootstrap: For responsive and modern design.
- HTML/CSS: Template styling and structure.
Before running this project, ensure you have the following installed:
- Python >= 3.9
- pip (Python package manager)
- PostgreSQL (for production database)
- MySQL WorckBench (for production or not)
-
Clone the repository:
git clone https://github.com/emicy963/todos-app.git cd todo-app
-
Set up a virtual environment and activate it:
python -m venv .venv source .venv/bin/activate # On Windows: .venv\Scripts\activate
-
Install the required packages:
pip install -r requirements.txt
-
Set up the database:
- Make sure PostgreSQL is running, and create a database for the project.
- Update the
DATABASES
configuration in thesettings.py
file to connect to your PostgreSQL ou MySQL instance.
-
Run database migrations:
python manage.py migrate
-
Create a superuser (admin):
python manage.py createsuperuser
-
Start the development server:
python manage.py runserver
-
Access the blog in your browser:
- Open
http://127.0.0.1:8000
in your web browser.
- Open
Set the following environment variables in a .env
file to securely configure your project:
SECRET_KEY=your_secret_key
DEBUG=False
ALLOWED_HOSTS=your_domain_or_ip
DATABASE_URL=postgres://username:password@localhost:5432/your_db_name
#DATABASE_URL=mysql://username:password@localhost:3306/your_db_name
[Provide brief instructions on how to use the Todos App, e.g.:]
- Access the admin panel at
/admin
to manage todos - Visit the homepage to view todos
Welcome contributions to improve this todos apps! Here's how you can contribute:
- Fork the repository
- Create a new branch (
git checkout -b feature/AmazingFeature
) - Make your changes
- Commit your changes (
git commit -m 'Add some AmazingFeature'
) - Push to the branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Please make sure to update tests as appropriate and here to the project's coding standards.
If you find a bug or have a suggestion for improvement, please open an issue on the GitHub repository. Provide as much detail as possible, including steps to reproduce the issue if applicable.
This project is under the MIT license. View the archive LICENSE
for more details.