Skip to content

Commit fb0cac3

Browse files
committed
Release v1.0.23
1 parent e8943c4 commit fb0cac3

File tree

6 files changed

+68
-37
lines changed

6 files changed

+68
-37
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## [1.0.23] 2024-05-15
4+
### Changes
5+
6+
- Update Sidebar Links
7+
- Update Auth Pages
8+
- Added ADMIN view for superusers
9+
310
## [1.0.22] 2024-05-13
411
### Changes
512

README.md

Lines changed: 30 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -73,23 +73,47 @@ The Django boilerplate has all you need to build your SaaS, Analytics tool, or a
7373

7474
- 1 hrs to setup the project
7575
- 2 hrs integrate tooling
76-
- 2 hrs to handle Stripe
77-
- 1 hrs for Docker
78-
- 1 hr Google Oauth
76+
- 10 hr for coding Datatables
77+
- 5 hr for having thr Charts
78+
- 2 hrs for Docker
7979
- ∞ hrs overthinking...
8080
- Free [Support](https://appseed.us/support/) via `Email` & [Discord](https://discord.gg/fZC6hup)
8181

8282
<br />
8383

84-
## Manual Build
84+
## Download Sources
8585

86-
> 👉 Download code
86+
The product can be downloaded from the [official page](https://appseed.us/product/rocket/django/) or GitHub using GIT:
8787

8888
```bash
8989
$ git clone https://github.com/app-generator/rocket-django.git
9090
$ cd rocket-django
9191
```
9292

93+
Once the sources are available in the local filesystem, we can start the project using `Docker` or `manual build`.
94+
95+
<br />
96+
97+
## Start with `Docker`
98+
99+
```bash
100+
# Optional (kill all existing containers)
101+
$ docker container kill $(docker ps -q) ; docker container rm $(docker ps -a -q) ; docker network prune -f
102+
# Start the APP
103+
$ docker-compose up --build
104+
```
105+
106+
Visit `http://localhost:5085` in your browser. The app should be up & running. The starter comes with two default users:
107+
108+
- Ordinary user: `test` / `[email protected]` / `Pass12__` (the password)
109+
- Django SuperUser (admin): `admin` / `[email protected]` / `Pass12__` (the password)
110+
111+
Once authenticated with the above credentials, the sidebar shows different items.
112+
113+
<br />
114+
115+
## Manual Build
116+
93117
> 👉 Create `.env` from `env.sample`
94118
95119
```env
@@ -98,7 +122,6 @@ DEBUG=False
98122
SECRET_KEY=<STRONG_KEY_HERE>
99123
```
100124

101-
102125
> 👉 Install **Django** modules via `VENV`
103126
104127
```bash
@@ -132,24 +155,7 @@ $ python manage.py createsuperuser # create the admin
132155
$ python manage.py runserver # start the project
133156
```
134157

135-
<br />
136-
137-
## Start With Docker
138-
139-
> 👉 Download code
140-
141-
```bash
142-
$ git clone https://github.com/app-generator/rocket-django.git
143-
$ cd rocket-django
144-
```
145-
146-
> 👉 Start with Docker Compose
147-
148-
```bash
149-
$ docker-compose up --build
150-
```
151-
152-
Visit the app in the browser `localhost:5085`.
158+
At this point, we can start using the starter.
153159

154160
<br />
155161

@@ -194,7 +200,6 @@ To use the starter in production mode, here are the steps:
194200

195201
As a model, feel free to take a look at [build.sh](./build.sh), the file executed by the CI/CD flow for Render:
196202

197-
198203
<br />
199204

200205
## **Deploy on Render**

db.sqlite3

0 Bytes
Binary file not shown.

templates/authentication/sign-in.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@
55
{% block content %}
66

77
<div class="flex flex-col items-center justify-center px-6 pt-8 mx-auto md:h-screen pt:mt-0 dark:bg-gray-900">
8-
<a href="https://flowbite-admin-dashboard.vercel.app/" class="flex items-center justify-center mb-8 text-2xl font-semibold lg:mb-10 dark:text-white">
8+
<a href="/" class="flex items-center justify-center mb-8 text-2xl font-semibold lg:mb-10 dark:text-white">
99
<img src="https://flowbite-admin-dashboard.vercel.app/images/logo.svg" class="mr-4 h-11" alt="FlowBite Logo">
10-
<span>Flowbite</span>
10+
<span>Rocket Django</span>
1111
</a>
1212
<!-- Card -->
1313
<div class="w-full max-w-xl p-6 space-y-8 sm:p-8 bg-white rounded-lg shadow dark:bg-gray-800">
1414
<h2 class="text-2xl font-bold text-gray-900 dark:text-white">
15-
Sign in to platform
15+
Sign IN
1616
</h2>
1717
<p>
1818
<span>ADMIN: admin / Pass12__</span>
@@ -52,7 +52,10 @@ <h2 class="text-2xl font-bold text-gray-900 dark:text-white">
5252
</div>
5353
<button type="submit" class="w-full px-5 py-3 text-base font-medium text-center text-white bg-primary-700 rounded-lg hover:bg-primary-800 focus:ring-4 focus:ring-primary-300 sm:w-auto dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800">Login to your account</button>
5454
<div class="text-sm font-medium text-gray-500 dark:text-gray-400">
55-
Not registered? <a href="{% url "signup" %}" class="text-primary-700 hover:underline dark:text-primary-500">Create account</a>
55+
<a href="{% url "signup" %}" class="text-primary-700 hover:underline dark:text-primary-500">Register</a>
56+
&nbsp; &bull; &nbsp;
57+
<a href="https://docs.appseed.us/products/rocket/django/" target="_blank"
58+
class="text-primary-700 hover:underline dark:text-primary-500">Documentation</a>
5659
</div>
5760
</form>
5861
</div>

templates/authentication/sign-up.html

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
{% block content %}
55

66
<div class="flex flex-col items-center justify-center px-6 pt-8 mx-auto md:h-screen pt:mt-0 dark:bg-gray-900">
7-
<a href="https://flowbite-admin-dashboard.vercel.app/" class="flex items-center justify-center mb-8 text-2xl font-semibold lg:mb-10 dark:text-white">
7+
<a href="/" class="flex items-center justify-center mb-8 text-2xl font-semibold lg:mb-10 dark:text-white">
88
<img src="https://flowbite-admin-dashboard.vercel.app/images/logo.svg" class="mr-4 h-11" alt="FlowBite Logo">
9-
<span>Flowbite</span>
9+
<span>Rocket Django</span>
1010
</a>
1111
<!-- Card -->
1212
<div class="w-full max-w-xl p-6 space-y-8 sm:p-8 bg-white rounded-lg shadow dark:bg-gray-800">
1313
<h2 class="text-2xl font-bold text-gray-900 dark:text-white">
14-
Create a Free Account
14+
Register
1515
</h2>
1616
<form method="post" class="mt-8 space-y-6">
1717
{% csrf_token %}
@@ -33,7 +33,10 @@ <h2 class="text-2xl font-bold text-gray-900 dark:text-white">
3333
</div>
3434
<button type="submit" class="w-full px-5 py-3 text-base font-medium text-center text-white bg-primary-700 rounded-lg hover:bg-primary-800 focus:ring-4 focus:ring-primary-300 sm:w-auto dark:bg-primary-600 dark:hover:bg-primary-700 dark:focus:ring-primary-800">Create account</button>
3535
<div class="text-sm font-medium text-gray-500 dark:text-gray-400">
36-
Already have an account? <a href="{% url "signin" %}" class="text-primary-700 hover:underline dark:text-primary-500">Login here</a>
36+
<a href="{% url "signin" %}" class="text-primary-700 hover:underline dark:text-primary-500">Sign IN</a>
37+
&nbsp; &bull; &nbsp;
38+
<a href="https://docs.appseed.us/products/rocket/django/" target="_blank"
39+
class="text-primary-700 hover:underline dark:text-primary-500">Documentation</a>
3740
</div>
3841
</form>
3942
</div>

templates/includes/sidebar.html

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@
5151
{% if request.user.is_authenticated %}
5252

5353
{% if request.user.is_superuser %}
54+
<li>
55+
<a href="{% url 'admin:index' %}"
56+
class="flex items-center p-2 text-base text-gray-900 rounded-lg hover:bg-gray-100 group dark:text-gray-200 dark:hover:bg-gray-700 {% if 'settings' in segment %} bg-gray-100 dark:bg-gray-700 {% endif %}">
57+
<svg class="w-6 h-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white"
58+
fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
59+
aria-hidden="true">
60+
<path clip-rule="evenodd" fill-rule="evenodd"
61+
d="M8.34 1.804A1 1 0 019.32 1h1.36a1 1 0 01.98.804l.295 1.473c.497.144.971.342 1.416.587l1.25-.834a1 1 0 011.262.125l.962.962a1 1 0 01.125 1.262l-.834 1.25c.245.445.443.919.587 1.416l1.473.294a1 1 0 01.804.98v1.361a1 1 0 01-.804.98l-1.473.295a6.95 6.95 0 01-.587 1.416l.834 1.25a1 1 0 01-.125 1.262l-.962.962a1 1 0 01-1.262.125l-1.25-.834a6.953 6.953 0 01-1.416.587l-.294 1.473a1 1 0 01-.98.804H9.32a1 1 0 01-.98-.804l-.295-1.473a6.957 6.957 0 01-1.416-.587l-1.25.834a1 1 0 01-1.262-.125l-.962-.962a1 1 0 01-.125-1.262l.834-1.25a6.957 6.957 0 01-.587-1.416l-1.473-.294A1 1 0 011 10.68V9.32a1 1 0 01.804-.98l1.473-.295c.144-.497.342-.971.587-1.416l-.834-1.25a1 1 0 01.125-1.262l.962-.962A1 1 0 015.38 3.03l1.25.834a6.957 6.957 0 011.416-.587l.294-1.473zM13 10a3 3 0 11-6 0 3 3 0 016 0z">
62+
</path>
63+
</svg>
64+
<span class="ml-3" sidebar-toggle-item>Admin View</span>
65+
</a>
66+
</li>
5467
<li>
5568
<a href="{% url "user_list" %}"
5669
class="flex items-center p-2 text-base text-gray-900 rounded-lg hover:bg-gray-100 group dark:text-gray-200 dark:hover:bg-gray-700 ">
@@ -176,25 +189,25 @@
176189

177190
<span class="ml-3" sidebar-toggle-item>Download</span>
178191
</a>
179-
<a href="https://flowbite.com/docs/components/alerts/" target="_blank"
192+
<a href="https://docs.appseed.us/products/rocket/django/" target="_blank"
180193
class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg hover:bg-gray-100 group dark:text-gray-200 dark:hover:bg-gray-700">
181194
<svg class="flex-shrink-0 w-6 h-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white"
182195
fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
183196
<path
184197
d="M7 3a1 1 0 000 2h6a1 1 0 100-2H7zM4 7a1 1 0 011-1h10a1 1 0 110 2H5a1 1 0 01-1-1zM2 11a2 2 0 012-2h12a2 2 0 012 2v4a2 2 0 01-2 2H4a2 2 0 01-2-2v-4z">
185198
</path>
186199
</svg>
187-
<span class="ml-3" sidebar-toggle-item>UI Components</span>
200+
<span class="ml-3" sidebar-toggle-item>Documentation</span>
188201
</a>
189-
<a href="https://appseed.us/support/" target="_blank"
202+
<a href="https://appseed.us/product/rocket-pro/django/" target="_blank"
190203
class="flex items-center p-2 text-base text-gray-900 transition duration-75 rounded-lg hover:bg-gray-100 group dark:text-gray-200 dark:hover:bg-gray-700">
191204
<svg class="flex-shrink-0 w-6 h-6 text-gray-500 transition duration-75 group-hover:text-gray-900 dark:text-gray-400 dark:group-hover:text-white"
192205
fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
193206
<path fill-rule="evenodd"
194207
d="M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-2 0c0 .993-.241 1.929-.668 2.754l-1.524-1.525a3.997 3.997 0 00.078-2.183l1.562-1.562C15.802 8.249 16 9.1 16 10zm-5.165 3.913l1.58 1.58A5.98 5.98 0 0110 16a5.976 5.976 0 01-2.516-.552l1.562-1.562a4.006 4.006 0 001.789.027zm-4.677-2.796a4.002 4.002 0 01-.041-2.08l-.08.08-1.53-1.533A5.98 5.98 0 004 10c0 .954.223 1.856.619 2.657l1.54-1.54zm1.088-6.45A5.974 5.974 0 0110 4c.954 0 1.856.223 2.657.619l-1.54 1.54a4.002 4.002 0 00-2.346.033L7.246 4.668zM12 10a2 2 0 11-4 0 2 2 0 014 0z"
195208
clip-rule="evenodd"></path>
196209
</svg>
197-
<span class="ml-3" sidebar-toggle-item>Support</span>
210+
<span class="ml-3" sidebar-toggle-item>PRO Version</span>
198211
</a>
199212
</div>
200213
</div>

0 commit comments

Comments
 (0)