Skip to content

Commit 4d6d83f

Browse files
committed
Django Datta PRO - Tests Section & Canonical
1 parent e07d804 commit 4d6d83f

File tree

1 file changed

+45
-1
lines changed

1 file changed

+45
-1
lines changed

docs/products/django-dashboards/datta-able-pro.mdx

Lines changed: 45 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
title: Django Datta PRO - Premium Starter
33
sidebar_label: Django Datta PRO
4+
canonical: https://appseed.us/product/datta-able-pro/django/
45
---
56

67
# [Django Datta Able PRO](https://appseed.us/product/datta-able-pro/django/)
@@ -121,6 +122,49 @@ At this point, the app runs at `http://127.0.0.1:8000/`.
121122

122123
<br />
123124

125+
## Start Celery
126+
127+
- Make sure you have a Redis Server running: `redis://localhost:6379`
128+
- `$ redis-cli` and type `ping`
129+
- In the base directory inside `tasks_scripts` folder you need to write your scripts file.
130+
- Run the celery command from the CLI.
131+
132+
```bash
133+
$ export DJANGO_SETTINGS_MODULE="core.settings"
134+
$ celery -A apps.tasks worker -l info -B
135+
```
136+
137+
- You will see a new route `Apps -> Tasks` in the sidebar.
138+
- You can start and cancel any task from the UI.
139+
140+
<br />
141+
142+
## Tests
143+
144+
> Software Prerequisites (Docker & NodeJS)
145+
146+
- Check Docker installation by typing `docker info` on a terminal screen.
147+
- Install NodeJS `v20.5.0` or above.
148+
- check the installation via `node --version`
149+
150+
> Running `tests` on **Linux/macOS**
151+
152+
```bash
153+
$ test.sh
154+
```
155+
156+
> Running `tests` on **Windows**
157+
158+
```bash
159+
$ test.bat
160+
```
161+
162+
The testing report is saved in the `test_reports` directory in **HTML and Video Format**.
163+
164+
<YoutubeEmbed url="https://www.youtube.com/embed/6y6i2tNxs_0" title="Django Datta PRO - Automatized End-To-End Tests" />
165+
166+
<br />
167+
124168
## Deploy on [Render](https://render.com/)
125169

126170
- Create a Blueprint instance
@@ -135,4 +179,4 @@ At this point, the product should be LIVE.
135179
## Resources
136180

137181
- 👉 Access [AppSeed](https://appseed.us/) for more starters and support
138-
- 👉 Get in touch for **[Custom Development Services](https://appseed.us/custom-development/)**
182+
- 👉 Get in touch for [Custom Development Services](https://appseed.us/custom-development/)

0 commit comments

Comments
 (0)