├── books ├── __init__.py ├── migrations │ ├── __init__.py │ └── 0001_initial.py ├── admin.py ├── apps.py ├── templates │ ├── components │ │ └── form.html │ ├── base.html │ └── pages │ │ └── home.html ├── tests.py ├── form.py ├── serializer.py ├── models.py └── views.py ├── DjangoReact ├── __init__.py ├── __pycache__ │ ├── urls.cpython-36.pyc │ ├── wsgi.cpython-36.pyc │ ├── __init__.cpython-36.pyc │ └── settings.cpython-36.pyc ├── asgi.py ├── wsgi.py ├── urls.py └── settings.py ├── db.sqlite3 ├── frontend ├── build │ ├── favicon.ico │ ├── logo192.png │ ├── logo512.png │ ├── robots.txt │ ├── static │ │ ├── css │ │ │ ├── main.5ecd60fb.chunk.css │ │ │ └── main.5ecd60fb.chunk.css.map │ │ └── js │ │ │ ├── 2.112182d7.chunk.js.LICENSE.txt │ │ │ ├── runtime-main.c8a21426.js │ │ │ ├── main.333fd2e6.chunk.js │ │ │ ├── runtime-main.c8a21426.js.map │ │ │ └── main.333fd2e6.chunk.js.map │ ├── manifest.json │ ├── precache-manifest.b43d8b462286b27c257b49e24040287a.js │ ├── asset-manifest.json │ ├── service-worker.js │ └── index.html ├── public │ ├── robots.txt │ ├── favicon.ico │ ├── logo192.png │ ├── logo512.png │ ├── manifest.json │ └── index.html ├── src │ ├── setupTests.js │ ├── App.test.js │ ├── index.css │ ├── index.js │ ├── App.css │ ├── logo.svg │ ├── App.js │ └── serviceWorker.js ├── package.json └── README.md ├── todo.md ├── Pipfile ├── .gitignore ├── README.md ├── manage.py └── Pipfile.lock /books/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /DjangoReact/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /books/migrations/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /db.sqlite3: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/db.sqlite3 -------------------------------------------------------------------------------- /books/admin.py: -------------------------------------------------------------------------------- 1 | from django.contrib import admin 2 | 3 | # Register your models here. 4 | -------------------------------------------------------------------------------- /frontend/build/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/frontend/build/favicon.ico -------------------------------------------------------------------------------- /frontend/build/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/frontend/build/logo192.png -------------------------------------------------------------------------------- /frontend/build/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/frontend/build/logo512.png -------------------------------------------------------------------------------- /frontend/build/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /frontend/public/robots.txt: -------------------------------------------------------------------------------- 1 | # https://www.robotstxt.org/robotstxt.html 2 | User-agent: * 3 | Disallow: 4 | -------------------------------------------------------------------------------- /frontend/public/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/frontend/public/favicon.ico -------------------------------------------------------------------------------- /frontend/public/logo192.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/frontend/public/logo192.png -------------------------------------------------------------------------------- /frontend/public/logo512.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/frontend/public/logo512.png -------------------------------------------------------------------------------- /books/apps.py: -------------------------------------------------------------------------------- 1 | from django.apps import AppConfig 2 | 3 | 4 | class BooksConfig(AppConfig): 5 | name = 'books' 6 | -------------------------------------------------------------------------------- /DjangoReact/__pycache__/urls.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/DjangoReact/__pycache__/urls.cpython-36.pyc -------------------------------------------------------------------------------- /DjangoReact/__pycache__/wsgi.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/DjangoReact/__pycache__/wsgi.cpython-36.pyc -------------------------------------------------------------------------------- /DjangoReact/__pycache__/__init__.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/DjangoReact/__pycache__/__init__.cpython-36.pyc -------------------------------------------------------------------------------- /DjangoReact/__pycache__/settings.cpython-36.pyc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/baris5d/DjangoReact/HEAD/DjangoReact/__pycache__/settings.cpython-36.pyc -------------------------------------------------------------------------------- /books/templates/components/form.html: -------------------------------------------------------------------------------- 1 |
-------------------------------------------------------------------------------- /todo.md: -------------------------------------------------------------------------------- 1 | Books 2 | -> Creating 3 | -> Name 4 | -> Author 5 | -> Descriptiion 6 | -> Image 7 | -> Search 8 | -> Delete 9 | -> Update 10 | Feed 11 | -> List of all books 12 | -------------------------------------------------------------------------------- /Pipfile: -------------------------------------------------------------------------------- 1 | [[source]] 2 | name = "pypi" 3 | url = "https://pypi.org/simple" 4 | verify_ssl = true 5 | 6 | [dev-packages] 7 | 8 | [packages] 9 | django = "==3.0.8" 10 | djangorestframework = "*" 11 | django-cors-headers = "*" 12 | 13 | [requires] 14 | python_version = "3.6" 15 | -------------------------------------------------------------------------------- /frontend/src/setupTests.js: -------------------------------------------------------------------------------- 1 | // jest-dom adds custom jest matchers for asserting on DOM nodes. 2 | // allows you to do things like: 3 | // expect(element).toHaveTextContent(/react/i) 4 | // learn more: https://github.com/testing-library/jest-dom 5 | import '@testing-library/jest-dom/extend-expect'; 6 | -------------------------------------------------------------------------------- /books/templates/base.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |{book.author}
71 |{book.description}
72 |Something went wrong
133 | : 134 |{book.description}
138 |{book.author}
\n{book.description}
\nSomething went wrong
\n :\n{book.description}
\n