/shiny-book

Django Create - Read - Update - Delete (CRUD) web app using books

Primary LanguagePythonMIT LicenseMIT

Books Project

Development Project Python Project Django Project Version 1.0

A simple Django CRUD application for managing books.

Requirements

  • Python 3.x
  • Django 3.x

Installation

  1. Clone the repository:

    git clone https://github.com/FernandoZnga/shiny-book.git
    cd yourproject
  2. Create a virtual environment:

    python -m venv venv
  3. Activate the virtual environment:

  • On Windows:

    venv\Scripts\activate
  • On macOS and Linux

    source venv/bin/activate
  1. Install dependencies:

    pip install -r requirements.txt
  2. Run migrations:

    python manage.py makemigrations
    python manage.py migrate
  3. Create superuser (optional, for accessing the admin interface):

    python manage.py createsuperuser
  4. Run the development server:

    python manage.py runserver
  5. Visit: localhost in your broser to interact with the CRUD app

Features

  • Create, read, update and delete books
  • Simple and intuitive user interface

Project Structure

Books/
├── Books/
│   ├── __init__.py
│   ├── asgi.py
│   ├── settings.py
│   ├── urls.py
│   └── wsgi.py
├── Core/
│   ├── __init__.py
│   ├── admin.py
│   ├── apps.py
│   ├── forms.py
│   ├── models.py
│   ├── tests.py
│   ├── urls.py
│   └── views.py
├── templates/
│   └── Core/
│       ├── book_confirm_delete.html
│       ├── book_detail.html
│       ├── book_form.html
│       └── book_list.html
├── manage.py
└── requirements.txt

Contributing

  1. Fork the repository.
  2. Create a new branch: git checkout -b my-new-feature.
  3. Make your changes and commit them: git commit -m 'Add some feature'.
  4. Push to the branch: git push origin my-new-feature.
  5. Submit a pull request

Licence

This project is licensed under the MIT License - see the LICENSE file for details.

requirements.txt

Create a requirements.txt file in the root of your project with the following content:

Django>=3.2,<4.0