Skip to content

Commit

Permalink
Release v1.0.23
Browse files Browse the repository at this point in the history
  • Loading branch information
app-generator committed May 15, 2024
1 parent e8943c4 commit fb0cac3
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 37 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Change Log

## [1.0.23] 2024-05-15
### Changes

- Update Sidebar Links
- Update Auth Pages
- Added ADMIN view for superusers

## [1.0.22] 2024-05-13
### Changes

Expand Down
55 changes: 30 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,23 +73,47 @@ The Django boilerplate has all you need to build your SaaS, Analytics tool, or a

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

<br />

## Manual Build
## Download Sources

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

```bash
$ git clone https://github.com/app-generator/rocket-django.git
$ cd rocket-django
```

Once the sources are available in the local filesystem, we can start the project using `Docker` or `manual build`.

<br />

## Start with `Docker`

```bash
# 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. The starter comes with two default users:

- Ordinary user: `test` / `[email protected]` / `Pass12__` (the password)
- Django SuperUser (admin): `admin` / `[email protected]` / `Pass12__` (the password)

Once authenticated with the above credentials, the sidebar shows different items.

<br />

## Manual Build

> 👉 Create `.env` from `env.sample`
```env
Expand All @@ -98,7 +122,6 @@ DEBUG=False
SECRET_KEY=<STRONG_KEY_HERE>
```


> 👉 Install **Django** modules via `VENV`
```bash
Expand Down Expand Up @@ -132,24 +155,7 @@ $ python manage.py createsuperuser # create the admin
$ python manage.py runserver # start the project
```

<br />

## Start With Docker

> 👉 Download code
```bash
$ git clone https://github.com/app-generator/rocket-django.git
$ cd rocket-django
```

> 👉 Start with Docker Compose
```bash
$ docker-compose up --build
```

Visit the app in the browser `localhost:5085`.
At this point, we can start using the starter.

<br />

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

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


<br />

## **Deploy on Render**
Expand Down
Binary file modified db.sqlite3
Binary file not shown.
11 changes: 7 additions & 4 deletions templates/authentication/sign-in.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
{% block content %}

<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">
<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">
<a href="/" class="flex items-center justify-center mb-8 text-2xl font-semibold lg:mb-10 dark:text-white">
<img src="https://flowbite-admin-dashboard.vercel.app/images/logo.svg" class="mr-4 h-11" alt="FlowBite Logo">
<span>Flowbite</span>
<span>Rocket Django</span>
</a>
<!-- Card -->
<div class="w-full max-w-xl p-6 space-y-8 sm:p-8 bg-white rounded-lg shadow dark:bg-gray-800">
<h2 class="text-2xl font-bold text-gray-900 dark:text-white">
Sign in to platform
Sign IN
</h2>
<p>
<span>ADMIN: admin / Pass12__</span>
Expand Down Expand Up @@ -52,7 +52,10 @@ <h2 class="text-2xl font-bold text-gray-900 dark:text-white">
</div>
<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>
<div class="text-sm font-medium text-gray-500 dark:text-gray-400">
Not registered? <a href="{% url "signup" %}" class="text-primary-700 hover:underline dark:text-primary-500">Create account</a>
<a href="{% url "signup" %}" class="text-primary-700 hover:underline dark:text-primary-500">Register</a>
&nbsp; &bull; &nbsp;
<a href="https://docs.appseed.us/products/rocket/django/" target="_blank"
class="text-primary-700 hover:underline dark:text-primary-500">Documentation</a>
</div>
</form>
</div>
Expand Down
11 changes: 7 additions & 4 deletions templates/authentication/sign-up.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
{% block content %}

<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">
<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">
<a href="/" class="flex items-center justify-center mb-8 text-2xl font-semibold lg:mb-10 dark:text-white">
<img src="https://flowbite-admin-dashboard.vercel.app/images/logo.svg" class="mr-4 h-11" alt="FlowBite Logo">
<span>Flowbite</span>
<span>Rocket Django</span>
</a>
<!-- Card -->
<div class="w-full max-w-xl p-6 space-y-8 sm:p-8 bg-white rounded-lg shadow dark:bg-gray-800">
<h2 class="text-2xl font-bold text-gray-900 dark:text-white">
Create a Free Account
Register
</h2>
<form method="post" class="mt-8 space-y-6">
{% csrf_token %}
Expand All @@ -33,7 +33,10 @@ <h2 class="text-2xl font-bold text-gray-900 dark:text-white">
</div>
<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>
<div class="text-sm font-medium text-gray-500 dark:text-gray-400">
Already have an account? <a href="{% url "signin" %}" class="text-primary-700 hover:underline dark:text-primary-500">Login here</a>
<a href="{% url "signin" %}" class="text-primary-700 hover:underline dark:text-primary-500">Sign IN</a>
&nbsp; &bull; &nbsp;
<a href="https://docs.appseed.us/products/rocket/django/" target="_blank"
class="text-primary-700 hover:underline dark:text-primary-500">Documentation</a>
</div>
</form>
</div>
Expand Down
21 changes: 17 additions & 4 deletions templates/includes/sidebar.html
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,19 @@
{% if request.user.is_authenticated %}

{% if request.user.is_superuser %}
<li>
<a href="{% url 'admin:index' %}"
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 %}">
<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"
fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"
aria-hidden="true">
<path clip-rule="evenodd" fill-rule="evenodd"
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">
</path>
</svg>
<span class="ml-3" sidebar-toggle-item>Admin View</span>
</a>
</li>
<li>
<a href="{% url "user_list" %}"
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 ">
Expand Down Expand Up @@ -176,25 +189,25 @@

<span class="ml-3" sidebar-toggle-item>Download</span>
</a>
<a href="https://flowbite.com/docs/components/alerts/" target="_blank"
<a href="https://docs.appseed.us/products/rocket/django/" target="_blank"
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">
<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"
fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path
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">
</path>
</svg>
<span class="ml-3" sidebar-toggle-item>UI Components</span>
<span class="ml-3" sidebar-toggle-item>Documentation</span>
</a>
<a href="https://appseed.us/support/" target="_blank"
<a href="https://appseed.us/product/rocket-pro/django/" target="_blank"
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">
<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"
fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
<path fill-rule="evenodd"
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"
clip-rule="evenodd"></path>
</svg>
<span class="ml-3" sidebar-toggle-item>Support</span>
<span class="ml-3" sidebar-toggle-item>PRO Version</span>
</a>
</div>
</div>
Expand Down

0 comments on commit fb0cac3

Please sign in to comment.