You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At this point, the API should be up & running at `http://localhost:5000`, and we can test the interface using POSTMAN or `curl`.
51
+
52
+
<br />
53
+
54
+
> Start the React UI (using another terminal)
55
+
56
+
```bash
57
+
$ cd react-ui
58
+
$ yarn # install dependencies
59
+
$ yarn start # start the app
60
+
```
61
+
62
+
Once all the above commands are executed, the `React UI` should be visible in the browser. By default, the app redirects the guest users to authenticate.
63
+
After we register a new user and Sign IN, all the private pages become accessible.
64
+
65
+
<br />
26
66
27
67

28
68
29
69
<br >
30
70
31
-
> **Note**: This product can be used with other API Servers for a complete fullstack experience. **ALL API servers use an unified interface**
71
+
## General Information
32
72
33
-
-[Flask API Server](https://github.com/app-generator/api-server-flask) - open-source product
34
-
-[Node JS API Server](https://github.com/app-generator/api-server-nodejs) - open-source product / Typescript / SQLite / TypeORM / Joy for validation
35
-
-[Node JS API Server PRO](https://github.com/app-generator/api-server-nodejs-pro) - **commercial product**
36
-
- SQLite / TypeORM / Joy / Docker
37
-
- MongoDB / Mongoose / Joy Docker (separate branch, same project)
73
+
The product is built using a `two-tier` pattern where the React frontend is decoupled logically and physically from the API backend. How to use the product:
74
+
75
+
-`Compile and start` the **Django API Backend**
76
+
- by default the server starts on port `5000`
77
+
-`Compile and start` the **React UI**
78
+
- UI will start on port `3000` and expects a running backend on port `5000`
79
+
-`Configuration` (Optional)
80
+
- Change the API port
81
+
- Configure the API port used by the React UI to communicate with the backend
38
82
39
83
<br />
40
84
41
-
## Start Django API Server
85
+
## Manual build
86
+
87
+
### Start the Django API
42
88
43
89
Simple starter built with Python / DRF Library / Sqlite3 and JWT Auth. The authentication flow is based on [json web tokens](https://jwt.io).
44
90
45
91
<br />
46
92
47
-
> How to use the code
48
-
49
-
**Step #1** - Clone the sources
93
+
> **Step #1** - Change the directory to `django-api`
The backend server uses an [Unified API defition](https://docs.appseed.us/boilerplate-code/api-server/api-unified-definition) maintained and actively supported by AppSeed across multiple frameworks: Flask, Node JS, FastAPI.
188
+
```
189
+
POST /api/users/login
190
+
Content-Type: application/json
136
191
137
-
-[API POSTMAN Collection](https://github.com/app-generator/api-unified-definition/blob/main/api.postman_collection.json) - can be used to mock (simulate) the backend server or code a new one in your preferred framework.
0 commit comments