Skip to content

Commit ccee6c9

Browse files
committed
UPD Developer Tools Section
1 parent 98afd26 commit ccee6c9

File tree

7 files changed

+147
-42
lines changed

7 files changed

+147
-42
lines changed

docs/developer-tools/_category_.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"link": {
88
"type": "generated-index",
99
"slug": "developer-tools",
10-
"description": "developer Tools"
10+
"description": "Open-source Tools for developers actively supported by AppSeed."
1111
}
1212
}

docs/developer-tools/database-introspection.mdx

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/developer-tools/django-api-generator.mdx

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
---
2-
sidebar_position: 1
3-
description: Developer Tool - Dynamic API Generator
2+
title: Django API Generator - Open-Source tool provided by AppSeed
3+
sidebar_label: Django API Generator
44
---
55

66
# Django API Generator
77

8-
The tool is able to `generate APIs` using **Django & DRF** stack with a minimum effort. For newcomers, **Django** is a leading backend framework used to code from simple websites and APIs to complex eCommerce solutions.
8+
The tool is able to `generate APIs` using **Django & DRF** stack with a minimum effort.
9+
For newcomers, **Django** is a leading backend framework used to code from simple websites and APIs to complex eCommerce solutions.
910

1011
- 👉 [Django API Generator](https://github.com/app-generator/devtool-django-api-generator) - `Source code`
1112
- 👉 Free [support](https://appseed.us/support/) via Email and `Discord`
1213
- 👉 More [Developer Tools](https://appseed.us/developer-tools/) - provided by AppSeed
1314

14-
## Quick start in `Docker`
15+
## Quick start in `Docker`
1516

1617
> 👉 **Step 1** - Download the code from the GH repository (using `GIT`)
1718
@@ -33,11 +34,11 @@ Visit `http://localhost:5085` in your browser. By default a simple `Books` Model
3334

3435
![Django API Generator - API View page for Books Model.](https://user-images.githubusercontent.com/51070104/194476781-6476de62-191a-48e8-8730-344c2d63f9d0.png)
3536

36-
## Video Presentation
37+
## ✅ ideo Presentation
3738

3839
<YoutubeEmbed url="https://www.youtube.com/embed/xREQr9GAsaY" title="Django API Generator - Tools for Developers" />
3940

40-
## How It Works
41+
## How It Works
4142

4243
> 👉 **Step #1** - Define models in `apps/models.py`
4344
@@ -80,7 +81,10 @@ $ python manage.py generate-api
8081
- Update book that has id = 2 by `PUT` request to `/api/books/2/`
8182
- delete book that has id = 2 by `DELETE` request to `/api/books/2/`
8283

83-
## 🚀 Where to go from here
84+
## ✅ Resources
85+
86+
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
87+
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
88+
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)
89+
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder
8490

85-
- 👉 Contact AppSeed using the [support](https://appseed.us/support/) page
86-
- 👉 Use the [App Generator](https://appseed.us/generator) to generate a new project

docs/developer-tools/django-dynamic-api.mdx

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,19 @@
11
---
2-
sidebar_position: 2
3-
description: Developer Tool - Dynamic API via Django and DRF
2+
title: Django Dynamic API - Open-Source tool provided by AppSeed
3+
sidebar_label: Django Dynamic API
44
---
55

66
# Django Dynamic API
77

88
This tool aims to provide a secure, `production-ready API via DRF` (Django REST Framework) using the developer's minimum amount of code.
99
For newcomers, [Django](https://www.djangoproject.com/) is a leading backend framework used to code from simple websites to complex eCommerce solutions.
10+
1011
[DRF](https://www.django-rest-framework.org/) (Django REST Framework) is the most popular library for developing secure API services.
1112

1213
- 👉 [Django Dynamic API](https://appseed.us/developer-tools/django-dynamic-api/) - product page
1314
- 👉 [Django Dynamic API](https://www.youtube.com/watch?v=TrTI2jG2LCw) - video presentation
1415

15-
## Tool Specs & Status
16+
## Tool Specs & Status
1617

1718
As mentioned above, the **Dynamic API** tool aims to enable a secured API service on top of any Django codebase with a minimum effort. Here are the steps:
1819

@@ -28,7 +29,9 @@ A video presentation of this feature can be found on YouTube:
2829

2930
<YoutubeEmbed url="https://www.youtube.com/embed/TrTI2jG2LCw" title="Dynamic API and DataTables - Tools for Developers" />
3031

31-
## 🚀 Where to go from here
32+
## ✅ Resources
3233

33-
- 👉 Contact AppSeed using the [support](https://appseed.us/support/) page
34-
- 👉 Use the [App Generator](https://appseed.us/generator) to generate a new project
34+
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
35+
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
36+
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)
37+
- 👉 [Django App Generator](https://app-generator.dev/django/) - A 2nd generation App Builder

docs/developer-tools/django-dynamic-datatables.mdx

Lines changed: 0 additions & 8 deletions
This file was deleted.
Lines changed: 113 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,118 @@
11
---
2-
sidebar_position: 4
3-
description: Developer Tool - Dynamic API via Flask-RestX
2+
title: Flask Dynamic API - Open-Source tool provided by AppSeed
3+
sidebar_label: Flask Dynamic API
44
---
55

66
# Flask Dynamic API
77

8-
@Todo
8+
This tool aims to provide a secure, `production-ready API via Flask-RestX` using the developer's minimum amount of code.
9+
For newcomers, **Flask** is a leading backend framework used to code from simple websites and API's to complex eCommerce solutions.
10+
11+
**Flask-RestX** is a popular library for developing secure API services using Flask.
12+
13+
- 👉 Free [support](https://appseed.us/support/) via Email and [Discord](https://discord.gg/fZC6hup)
14+
- 👉 More [Developer Tools](https://appseed.us/developer-tools/) - provided by AppSeed
15+
16+
## ✅ Video Presentation
17+
18+
<YoutubeEmbed url="https://user-images.githubusercontent.com/51070104/194328733-3bdf8c70-f765-4168-983d-2a51e276239b.mp4" title="Flask Dynamic API - Open-Source tool provided by AppSeed" />
19+
20+
21+
## ✅ Manual Build
22+
23+
> Clone/Download Sources
24+
25+
```bash
26+
$ git clone https://github.com/app-generator/flask-dynamic-api.git
27+
$ cd flask-dynamic-api
28+
```
29+
30+
> Install Modules
31+
32+
```bash
33+
$ virtualenv env
34+
$ source env/bin/activate
35+
$ pip install -r requirements.txt
36+
```
37+
38+
> Update ENV
39+
40+
```bash
41+
$ export FLASK_APP=run.py
42+
```
43+
44+
> Migrate DB
45+
46+
```bash
47+
$ flask db init # INIT needs to be executed only once
48+
$ flask db migrate # Needs to be executed at each DB Schema Update
49+
$ flask db upgrade # Needs to be executed at each DB Schema Update
50+
```
51+
52+
> Start the project
53+
54+
```bash
55+
$ flask run
56+
```
57+
58+
## ✅ How it works
59+
60+
The **Dynamic API** tool aims to enable a secured API service on top of any Flask codebase with a minimum effort. Here are the steps:
61+
62+
- `Define a new model` in the project (an old one can be also used)
63+
- `Execute the database migration` to create/update the associated tables
64+
- `Update the configuration` to enable the Dynamic API over the model
65+
- `Start the app`
66+
- Access the `Dynamic API Service`
67+
68+
For instance, if the new model managed by the Dynamic API is called books, the associate API is exposed at /api/books/
69+
70+
<br />
71+
72+
| Status | Item | info |
73+
| --- | --- | --- |
74+
|| New Models Definition in `apps/models` | - |
75+
|| The app is saved in `apps/dyn_api` | - |
76+
|| Models enabled in `apps/config.py` via `DYNAMIC_API` variable | - |
77+
|| The project exposes automatically a CRUD API over the new model | - |
78+
|| Path of the service: `/api/books/` | In case the new model is `Books` |
79+
|| The API is powered via Flask-RestX using best practices | - |
80+
81+
82+
## ✅ API Permissions
83+
84+
Before using the API, the user must make a request to the `/login' endpoint and send his username and password.:
85+
86+
```json
87+
POST /login
88+
{
89+
"username": "my_username",
90+
"password": "my_password"
91+
}
92+
```
93+
94+
The server returns a token if approved.
95+
96+
```json
97+
{
98+
"token": "RETURNED_TOKEN"
99+
}
100+
```
101+
102+
To use the features, the user must add a key and value to the headers.
103+
104+
headers of requests:
105+
```json
106+
{
107+
...
108+
"Authorization": "token RETURNED_TOKEN"
109+
...
110+
}
111+
```
112+
**Note:** token will be expired after 24 hours.
113+
114+
## ✅ Resources
115+
116+
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
117+
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
118+
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)

docs/developer-tools/flask-dynamic-datatables.mdx

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,20 @@
11
---
2-
sidebar_position: 5
3-
description: Developer Tool - Dynamic DataTables via Flask
2+
title: Flask Dynamic DataTables - Open-Source tool provided by AppSeed
3+
sidebar_label: Flask Dynamic DataTables
44
---
55

66
# Flask Dynamic DataTables
77

8-
The tool aims to provide a powerful data table interface using the developer's minimum amount of code For newcomers, Flask is a leading backend framework used to code from simple websites and APIs to complex eCommerce solutions. The presentation layer uses `Simple-DataTables` and Vanilla JS code to render the information.
8+
The tool aims to provide a powerful data table interface using the developer's minimum amount of code.
9+
For newcomers, Flask is a leading backend framework used to code from simple websites and APIs to complex eCommerce solutions.
10+
11+
The presentation layer uses `Simple-DataTables` and Vanilla JS code to render the information.
912

1013
- 👉 [Flask Dynamic DataTables](https://github.com/app-generator/devtool-flask-dynamic-datatb) - source code (MIT License)
1114
- 👉 Free [support](https://appseed.us/support/) via Email and [Discord](https://discord.gg/fZC6hup)
1215
- 👉 More [Developer Tools](https://appseed.us/developer-tools/) - provided by AppSeed
1316

14-
### Tool Specs & Status
17+
## Tool Specs & Status
1518

1619
As mentioned above, the `Dynamic DataTables` tool aims to enable a powerful data table interface on top of any Flask codebase with a minimum effort. Here are the steps:
1720

@@ -27,7 +30,8 @@ A video presentation of this feature can be found on YouTube:
2730

2831
<YoutubeEmbed url="https://www.youtube.com/embed/kYRvhQj-JQE" title="Flask Dynamic DataTables - Free Tool for Developers" />
2932

30-
## 🚀 Where to go from here
33+
## ✅ Resources
3134

32-
- 👉 Contact AppSeed using the [support](https://appseed.us/support/) page
33-
- 👉 Use the [App Generator](https://appseed.us/generator) to generate a new project
35+
- 👉 Access [AppSeed](https://appseed.us/) and start your next project
36+
- 👉 [Deploy Projects on Aws, Azure and Digital Ocean](https://www.docs.deploypro.dev/) via **DeployPRO**
37+
- 👉 Create an amazing landing page with [Simpllo, an open-source site builder](https://www.simpllo.com/)

0 commit comments

Comments
 (0)