|
| 1 | +# [Django Material Kit](https://appseed.us/product/material-kit/django/) |
| 2 | + |
| 3 | +`Open-Source` seed project generated by AppSeed in **Django** Framework on top of **[Material Kit](https://appseed.us/product/material-kit/django/)** design. Designed for those who like bold elements and beautiful websites, **Material Kit 2** is ready to help you create stunning websites and web apps. `Material Kit 2` is built with over 60 frontend individual elements, like buttons, inputs, navbars, nav tabs, cards, or alerts, giving you the freedom of choosing and combining. |
| 4 | + |
| 5 | +- π [Django Material Kit](https://appseed.us/product/material-kit/django/) - product page |
| 6 | +- π [Django Material Kit](https://django-material-kit.appseed-srv1.com/) - LIVE App |
| 7 | +- π [Complete documentation](https://docs.appseed.us/products/django-apps/material-kit) - `Learn how to use and update the product` |
| 8 | + |
| 9 | +<br /> |
| 10 | + |
| 11 | +> π Built with [App Generator](https://appseed.us/generator/), Timestamp: `2022-09-18 07:49` |
| 12 | +
|
| 13 | +- β
`Up-to-date dependencies` |
| 14 | +- β
Database: `sqlite` |
| 15 | +- β
UI-Ready app, Django Native ORM |
| 16 | +- β
`Session-Based authentication`, Forms validation |
| 17 | + |
| 18 | +<br /> |
| 19 | + |
| 20 | + |
| 21 | + |
| 22 | +<br /> |
| 23 | + |
| 24 | +## β¨ Start the app in Docker |
| 25 | + |
| 26 | +> **Step 1** - Download the code from the GH repository (using `GIT`) |
| 27 | +
|
| 28 | +```bash |
| 29 | +$ git clone https://github.com/app-generator/django-material-kit.git |
| 30 | +$ cd django-material-kit |
| 31 | +``` |
| 32 | + |
| 33 | +<br /> |
| 34 | + |
| 35 | +> **Step 2** - Start the APP in `Docker` |
| 36 | +
|
| 37 | +```bash |
| 38 | +$ docker-compose up --build |
| 39 | +``` |
| 40 | + |
| 41 | +Visit `http://localhost:5085` in your browser. The app should be up & running. |
| 42 | + |
| 43 | +<br /> |
| 44 | + |
| 45 | +## β¨ How to use it |
| 46 | + |
| 47 | +> Download the code |
| 48 | +
|
| 49 | +```bash |
| 50 | +$ # Get the code |
| 51 | +$ git clone https://github.com/app-generator/django-material-kit.git |
| 52 | +$ cd django-material-kit |
| 53 | +``` |
| 54 | + |
| 55 | +<br /> |
| 56 | + |
| 57 | +### π Set Up for `Unix`, `MacOS` |
| 58 | + |
| 59 | +> Install modules via `VENV` |
| 60 | +
|
| 61 | +```bash |
| 62 | +$ virtualenv env |
| 63 | +$ source env/bin/activate |
| 64 | +$ pip3 install -r requirements.txt |
| 65 | +``` |
| 66 | + |
| 67 | +<br /> |
| 68 | + |
| 69 | +> Set Up Database |
| 70 | +
|
| 71 | +```bash |
| 72 | +$ python manage.py makemigrations |
| 73 | +$ python manage.py migrate |
| 74 | +``` |
| 75 | + |
| 76 | +<br /> |
| 77 | + |
| 78 | +> Start the app |
| 79 | +
|
| 80 | +```bash |
| 81 | +$ python manage.py runserver |
| 82 | +``` |
| 83 | + |
| 84 | +At this point, the app runs at `http://127.0.0.1:8000/`. |
| 85 | + |
| 86 | +<br /> |
| 87 | + |
| 88 | +### π Set Up for `Windows` |
| 89 | + |
| 90 | +> Install modules via `VENV` (windows) |
| 91 | +
|
| 92 | +``` |
| 93 | +$ virtualenv env |
| 94 | +$ .\env\Scripts\activate |
| 95 | +$ pip3 install -r requirements.txt |
| 96 | +``` |
| 97 | + |
| 98 | +<br /> |
| 99 | + |
| 100 | +> Set Up Database |
| 101 | +
|
| 102 | +```bash |
| 103 | +$ python manage.py makemigrations |
| 104 | +$ python manage.py migrate |
| 105 | +``` |
| 106 | + |
| 107 | +<br /> |
| 108 | + |
| 109 | +> Start the app |
| 110 | +
|
| 111 | +```bash |
| 112 | +$ python manage.py runserver |
| 113 | +``` |
| 114 | + |
| 115 | +At this point, the app runs at `http://127.0.0.1:8000/`. |
| 116 | + |
| 117 | +<br /> |
| 118 | + |
| 119 | +## β¨ Create Users |
| 120 | + |
| 121 | +By default, the app redirects guest users to authenticate. In order to access the private pages, follow this set up: |
| 122 | + |
| 123 | +- Start the app via `flask run` |
| 124 | +- Access the `registration` page and create a new user: |
| 125 | + - `http://127.0.0.1:8000/register/` |
| 126 | +- Access the `sign in` page and authenticate |
| 127 | + - `http://127.0.0.1:8000/login/` |
| 128 | + |
| 129 | +<br /> |
| 130 | + |
| 131 | +## β¨ Code-base structure |
| 132 | + |
| 133 | +The project is coded using a simple and intuitive structure presented below: |
| 134 | + |
| 135 | +```bash |
| 136 | +< PROJECT ROOT > |
| 137 | + | |
| 138 | + |-- core/ # Implements app configuration |
| 139 | + | |-- settings.py # Defines Global Settings |
| 140 | + | |-- wsgi.py # Start the app in production |
| 141 | + | |-- urls.py # Define URLs served by all apps/nodes |
| 142 | + | |
| 143 | + |-- apps/ |
| 144 | + | | |
| 145 | + | |-- home/ # A simple app that serve HTML files |
| 146 | + | | |-- views.py # Serve HTML pages for authenticated users |
| 147 | + | | |-- urls.py # Define some super simple routes |
| 148 | + | | |
| 149 | + | |-- authentication/ # Handles auth routes (login and register) |
| 150 | + | | |-- urls.py # Define authentication routes |
| 151 | + | | |-- views.py # Handles login and registration |
| 152 | + | | |-- forms.py # Define auth forms (login and register) |
| 153 | + | | |
| 154 | + | |-- static/ |
| 155 | + | | |-- <css, JS, images> # CSS files, Javascripts files |
| 156 | + | | |
| 157 | + | |-- templates/ # Templates used to render pages |
| 158 | + | |-- includes/ # HTML chunks and components |
| 159 | + | | |-- navigation.html # Top menu component |
| 160 | + | | |-- footer.html # App Footer |
| 161 | + | | |-- scripts.html # Scripts common to all pages |
| 162 | + | | |
| 163 | + | |-- layouts/ # Master pages |
| 164 | + | | |-- base.html # Used by common pages |
| 165 | + | | |
| 166 | + | |-- accounts/ # Authentication pages |
| 167 | + | | |-- login.html # Login page |
| 168 | + | | |-- register.html # Register page |
| 169 | + | | |
| 170 | + | |-- home/ # UI Kit Pages |
| 171 | + | |-- index.html # Index page |
| 172 | + | |-- page-404.html # 404 page |
| 173 | + | |-- *.html # All other pages |
| 174 | + | |
| 175 | + |-- requirements.txt # Development modules - SQLite storage |
| 176 | + | |
| 177 | + |-- .env # Inject Configuration via Environment |
| 178 | + |-- manage.py # Start the app - Django default start script |
| 179 | + | |
| 180 | + |-- ************************************************************************ |
| 181 | +``` |
| 182 | + |
| 183 | +<br /> |
| 184 | + |
| 185 | +## PRO Version |
| 186 | + |
| 187 | +> For more components, pages and priority on support, feel free to take a look at this amazing starter: |
| 188 | +
|
| 189 | +**Material Kit 2** is a premium design crafted by the `Creative-Tim` agency on top of Bootstrap 5 Framework. Designed for those who like bold elements and beautiful websites, Material Kit 2 is made of hundreds of elements, designed blocks, and fully coded pages built with an impressive level of quality. |
| 190 | + |
| 191 | +- π [Django Material Kit2 PRO](https://appseed.us/product/material-kit2-pro/django/) - product page |
| 192 | + - β
`Enhanced UI` - more pages and components |
| 193 | + - β
`Priority` on support |
| 194 | + |
| 195 | +<br > |
| 196 | + |
| 197 | + |
| 198 | + |
| 199 | +<br /> |
| 200 | + |
| 201 | +--- |
| 202 | +[Django Material Kit](https://appseed.us/product/material-kit/django/) - Open-source starter generated by **[AppSeed Generator](https://appseed.us/generator/)**. |
0 commit comments