app-generator / django-datta-able-pro

Django Dashboard - Datta Able PRO | AppSeed
https://appseed.us/product/datta-able-pro/django/
Other
3 stars 2 forks source link
appseed datta-able django-template django-theme

Datta Able PRO Django

Premium Django Dashboard generated by AppSeed op top of a modern design. Datta Able is the most stylised Bootstrap 5 Admin Template.

It comes with high feature-rich pages and components with fully developer-centric code. Before developing Datta Able our key points were performance and design.


Features

Datta Able PRO - Full-Stack Starter generated by AppSeed.


Start in Docker

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

$ unzip django-datta-able-pro.zip
$ cd django-datta-able-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-datta-able-pro.zip
$ cd django-datta-able-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 tasks)

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


Enable Social Login

πŸ‘‰ Github Setup - Create an OAuth App


Tests

Software Prerequisites (Docker & NodeJS)

Running tests on Linux/macOS

$ test.sh

Running tests on Windows

$ test.bat

The testing report is saved in the test_reports directory in HTML and Video Format.

https://github.com/app-generator/priv-django-datta-able-pro/assets/51070104/6fa4181e-8b55-4c95-b114-5c50942618b9


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
   |
   |-- ************************************************************************



Datta Able PRO Django - Starter crafted by AppSeed.