|
2 | 2 |
|
3 | 3 | **Open-Source Admin Dashboard** coded in **[Django Framework](https://www.djangoproject.com/)** - Provided by **AppSeed** [Web App Generator](https://appseed.us/app-generator). |
4 | 4 |
|
5 | | -### Dashboard Features: |
| 5 | +### Dashboard Features |
6 | 6 |
|
7 | 7 | - SQLite, Django native ORM |
8 | 8 | - Modular design |
9 | 9 | - Session-Based authentication (login, register) |
10 | 10 | - Forms validation |
11 | | -- UI Kit: **Black Dashboard** provided by **Creative-Tim** |
| 11 | +- UI Kit: **Black Dashboard** (Free Version) by **Creative-Tim** |
| 12 | + |
| 13 | +### Deployment Scripts |
| 14 | + |
| 15 | +- **Heroku** - Cloud Application Platform |
| 16 | +- **Docker** - execute the app using a sandboxed container |
| 17 | +- **Gunicorn** / Nginx - a common used configuration for Django Apps |
| 18 | +- **Waitress** - Gunicorn equivalent for Windows. |
| 19 | + |
| 20 | +### Web App Links |
| 21 | + |
| 22 | +- [Django Dashboard Black](https://appseed.us/admin-dashboards/django-dashboard-black) - product page |
| 23 | +- [Django Dashboard Black](https://django-dashboard-black.herokuapp.com/) - LIVE Demo |
12 | 24 |
|
13 | 25 | <br /> |
14 | 26 |
|
@@ -61,16 +73,117 @@ $ # Access the web app in browser: http://127.0.0.1:8000/ |
61 | 73 |
|
62 | 74 | <br /> |
63 | 75 |
|
| 76 | +## Deployment |
| 77 | + |
| 78 | +The app is provided with a basic configuration to be executed in [Heroku](https://heroku.com/), [Docker](https://www.docker.com/), [Gunicorn](https://gunicorn.org/), and [Waitress](https://docs.pylonsproject.org/projects/waitress/en/stable/). |
| 79 | + |
| 80 | +### [Heroku](https://heroku.com/) platform |
| 81 | + |
| 82 | +```bash |
| 83 | +$ # Get the code |
| 84 | +$ git clone https://github.com/app-generator/django-dashboard-black.git |
| 85 | +$ cd django-dashboard-black |
| 86 | +$ |
| 87 | +$ # Heroku Login |
| 88 | +$ heroku login |
| 89 | +$ |
| 90 | +$ # Create the app in Heroku platform |
| 91 | +$ heroku create # a random name will be generated by Heroku |
| 92 | +$ |
| 93 | +$ # Disable collect static |
| 94 | +$ heroku config:set DISABLE_COLLECTSTATIC=1 |
| 95 | +$ |
| 96 | +$ # Push the source code and trigger the deploy |
| 97 | +$ git push heroku master |
| 98 | +$ |
| 99 | +$ # Execute DBSchema Migration |
| 100 | +$ heroku run python manage.py makemigrations |
| 101 | +$ heroku run python manage.py migrate |
| 102 | +$ |
| 103 | +$ # Visit the deployed app in browser. |
| 104 | +$ heroku open |
| 105 | +$ |
| 106 | +$ # Create a superuser |
| 107 | +$ heroku run python manage.py createsuperuser |
| 108 | +``` |
| 109 | + |
| 110 | +<br /> |
| 111 | + |
| 112 | +### [Docker](https://www.docker.com/) execution |
| 113 | +--- |
| 114 | + |
| 115 | +The application can be easily executed in a docker container. The steps: |
| 116 | + |
| 117 | +> Get the code |
| 118 | +
|
| 119 | +```bash |
| 120 | +$ git clone https://github.com/app-generator/django-dashboard-black.git |
| 121 | +$ cd django-dashboard-black |
| 122 | +``` |
| 123 | + |
| 124 | +> Start the app in Docker |
| 125 | +
|
| 126 | +```bash |
| 127 | +$ sudo docker-compose pull && sudo docker-compose build && sudo docker-compose up -d |
| 128 | +``` |
| 129 | + |
| 130 | +Visit `http://localhost:5005` in your browser. The app should be up & running. |
| 131 | + |
| 132 | +<br /> |
| 133 | + |
| 134 | +### [Gunicorn](https://gunicorn.org/) |
| 135 | +--- |
| 136 | + |
| 137 | +Gunicorn 'Green Unicorn' is a Python WSGI HTTP Server for UNIX. |
| 138 | + |
| 139 | +> Install using pip |
| 140 | +
|
| 141 | +```bash |
| 142 | +$ pip install gunicorn |
| 143 | +``` |
| 144 | +> Start the app using gunicorn binary |
| 145 | +
|
| 146 | +```bash |
| 147 | +$ gunicorn --bind=0.0.0.0:8001 core.wsgi:application |
| 148 | +Serving on http://localhost:8001 |
| 149 | +``` |
| 150 | + |
| 151 | +Visit `http://localhost:8001` in your browser. The app should be up & running. |
| 152 | + |
| 153 | + |
| 154 | +<br /> |
| 155 | + |
| 156 | +### [Waitress](https://docs.pylonsproject.org/projects/waitress/en/stable/) |
| 157 | +--- |
| 158 | + |
| 159 | +Waitress (Gunicorn equivalent for Windows) is meant to be a production-quality pure-Python WSGI server with very acceptable performance. It has no dependencies except ones that live in the Python standard library. |
| 160 | + |
| 161 | +> Install using pip |
| 162 | +
|
| 163 | +```bash |
| 164 | +$ pip install waitress |
| 165 | +``` |
| 166 | +> Start the app using [waitress-serve](https://docs.pylonsproject.org/projects/waitress/en/stable/runner.html) |
| 167 | +
|
| 168 | +```bash |
| 169 | +$ waitress-serve --port=8001 core.wsgi:application |
| 170 | +Serving on http://localhost:8001 |
| 171 | +``` |
| 172 | + |
| 173 | +Visit `http://localhost:8001` in your browser. The app should be up & running. |
| 174 | + |
| 175 | +<br /> |
| 176 | + |
64 | 177 | ## Support |
65 | 178 |
|
66 | 179 | - Free support via eMail < [support @ appseed.us](https://appseed.us/support) > and **Github** issues tracker |
67 | 180 | - 24/7 Live Support via [Discord](https://discord.gg/fZC6hup) for paid plans and commercial products. |
68 | 181 |
|
69 | 182 | <br /> |
70 | 183 |
|
71 | | -## Credits & Links |
| 184 | +## Credits |
72 | 185 |
|
73 | | -- [Django Dashboard Black](https://www.youtube.com/watch?v=czv4Ww6rjMU) - yTube presentation |
| 186 | +- [Django Dashboard Black](https://www.youtube.com/watch?v=RJkCTn55ywo) - yTube presentation |
74 | 187 | - [Django Framework](https://www.djangoproject.com/) - Offcial website |
75 | 188 | - [Django Admin Dashboards](https://appseed.us/admin-dashboards/django) - Open-source and paid admin panels coded in **Django** |
76 | 189 |
|
|
0 commit comments