app-generator / django-material-dashboard2-pro

Django - Material Dashboard PRO | AppSeed
https://appseed.us/product/material-dashboard2-pro/django/
Other
10 stars 7 forks source link
appseed django-template django-theme material-design

Django Material BS5 PRO

Django starter styled with Material Dashboard PRO, a premium Bootstrap 5 KIT from Creative-Tim The product is designed to deliver the best possible user experience with highly customizable feature-rich pages.


Features

Django Material Dash2 PRO


Start in Docker

Step 1 - Download the code and unzip the sources (requires a purchase).

$ unzip django-material-dashboard2-pro.zip
$ cd django-material-dashboard2-pro


Step 2 - Start the APP in Docker

# Optional (kill all existing containers)
$ docker container kill $(docker ps -q) ; docker container rm $(docker ps -a -q) ; docker network prune -f 
# Start the APP
$ docker-compose up --build 

Visit http://localhost:5085 in your browser. The app should be up & running.


Create new .env from env.sample

The meaning of each variable can be found below:


Manual Build

  • Download the code and unzip the sources (requires a purchase).
$ unzip django-material-dashboard2-pro.zip
$ cd django-material-dashboard2-pro


👉 Set Up for Unix, MacOS

Install modules via VENV

$ virtualenv env
$ source env/bin/activate
$ pip3 install -r requirements.txt


Set Up Database

$ python manage.py makemigrations
$ python manage.py migrate


Create Superuser

$ python manage.py createsuperuser


Start the app

$ python manage.py runserver

At this point, the app runs at http://127.0.0.1:8000/.


👉 Set Up for Windows

Install modules via VENV (windows)

$ virtualenv env
$ .\env\Scripts\activate
$ pip3 install -r requirements.txt


Set Up Database

$ python manage.py makemigrations
$ python manage.py migrate


Start the app

$ python manage.py runserver

At this point, the app runs at http://127.0.0.1:8000/.


👉 Create Users

By default, the app redirects guest users to authenticate. In order to access the private pages, follow this set up:


Start Celery (async task)

$ export DJANGO_SETTINGS_MODULE="core.settings"  
$ celery -A apps.tasks worker -l info -B


Enable Social Login

👉 Github Setup - Create an OAuth App


Codebase

The project is coded using a simple and intuitive structure presented below:

< PROJECT ROOT >
   |
   |-- core/              # Implements app configuration
   |    |-- settings.py   # Defines Global Settings
   |    |-- wsgi.py       # Start the app in production
   |    |-- urls.py       # Define URLs served by all apps/nodes
   |
   |-- home/              # Serves all pages from the UI Kit  
   |
   |-- apps/
   |    |
   |    |-- common/       # Assets used by all APPS (models, helpers)
   |    |-- users/        # Handles Auth Flow
   |    |-- api/          # DRF API
   |    |-- charts/       # Charts APP
   |    |-- tables/       # DataTables APP
   |    |-- tasks/        # Celery App
   |
   |-- templates/         # Pages & Templates   
   |-- assets/            # Static Assets [ JS, CSS, images ]   
   |
   |-- requirements.txt   # Development modules - SQLite storage
   |
   |-- .env               # Environment
   |-- env.sample         # Environment Sample
   |
   |-- manage.py          # Django Manager File
   |
   |-- ************************************************************************



Django Material Dash2 PRO - Starter crafted by AppSeed.