Skip to content

Commit 5b6c8d9

Browse files
committed
UPD Codebase
1 parent 4cb1a2e commit 5b6c8d9

File tree

228 files changed

+49257
-77
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

228 files changed

+49257
-77
lines changed

LICENSE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# MIT License
22

3-
Copyright (c) 2019 - present [AppSeed](http://appseed.us/) / [CodedThemes](https://codedthemes.com/)
3+
Copyright (c) 2019 - present [AppSeed](http://appseed.us/)
44

55
<br />
66

@@ -29,4 +29,4 @@ Copyright (c) 2019 - present [AppSeed](http://appseed.us/) / [CodedThemes](https
2929
<br />
3030

3131
---
32-
For more information regarding licensing, contact the AppSeed Service < *support@appseed.us* >
32+
For more information regarding licensing, please contact the AppSeed Service < *support@appseed.us* >

README.md

Lines changed: 81 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,143 +1,149 @@
1-
# [Django React Datta Able](https://appseed.us/product/django-react-datta-able)
1+
# [Django React Datta Able](https://appseed.us/product/datta-able/api-server-django/react/)
22

3-
Open-source full-stack seed project coded in React and Django on top of a modern design from CodedThemes. The **[Django React](https://appseed.us/product/django-react-datta-able)** codebase is already configured with an SQLite database, API (via **DRF**), and JWT token-based authentication flow. **Datta Able** is an open-source **React Dashboard** that provides a colorful and modern design.
3+
Full-Stack Seed project generated by **[React App Generator](https://appseed.us/generator/react/)** top of *Datta Able* design. The backend logic is provided by a simple, `easy-to-extend` API Server that manages the Authentication flow (login, registration, logout) using `JSON Web Tokens` (JWT).
44

5-
<br />
5+
- 👉 [Flask React Datta Able](https://appseed.us/product/datta-able/api-server-flask/react/) - `Product Page`
6+
- 👉 [Flask React Datta Able](https://flask-react-datta-able.appseed-srv1.com) - `LIVE Demo`
67

7-
> Features
8+
![React Datta Able - Full-Stack Starter generated by AppSeed.](https://user-images.githubusercontent.com/51070104/174488189-7bbb3e82-b319-487e-94ec-e295aca3f6d7.png)
89

9-
- Modern aesthetics UI design - Designed by [CodedThemes](https://bit.ly/37fF9RT)
10-
- React, Redux, Redux-persist
11-
- Authentication: JWT Login/Register/Logout
12-
- Backend: [Django API Server](https://github.com/app-generator/api-server-django)
10+
<br >
1311

14-
<br />
12+
## `React` Datta Able
1513

16-
> Links
14+
- Modern aesthetics UI design - Designed by *[CodedThemes](https://bit.ly/37fF9RT)*
15+
- React, Redux, Redux-persist
1716

18-
- [Django React Datta Able](https://appseed.us/product/django-react-datta-able) - product page
19-
- [Django React Datta Able](https://django-react-datta-able.appseed-srv1.com/) - LIVE Demo
20-
- [Django React Datta Able](https://docs.appseed.us/products/react/django-datta-able) - product documentation
21-
- Download Backend: [Django API Server 📥](https://github.com/app-generator/api-server-django/archive/refs/heads/main.zip)
22-
- Donwnload Frontend: [React Datta Able 📥](https://github.com/app-generator/react-node-js-datta-able/archive/refs/heads/main.zip)
17+
<br />
2318

24-
<br >
19+
> `Tests` (compatibility matrix)
2520
26-
> **Note**: This product can be used with other API Servers for a complete fullstack experience. **ALL API servers use an unified interface**
21+
| NodeJS | NPM | YARN |
22+
| --- | --- | --- |
23+
| `v14.0.0` |||
24+
| `v16.0.0` |||
25+
| `v18.0.0` |||
2726

28-
- [Flask API Server](https://github.com/app-generator/api-server-flask) - open-source product
29-
- [Node JS API Server](https://github.com/app-generator/api-server-nodejs) - open-source product / Typescript / SQLite / TypeORM / Joy for validation
30-
- [Node JS API Server PRO](https://github.com/app-generator/api-server-nodejs-pro) - **commercial product**
31-
- SQLite / TypeORM / Joy / Docker
32-
- MongoDB / Mongoose / Joy Docker (separate branch, same project)
3327

3428
<br />
3529

36-
![Django React Datta Able - Open-source full stack product built in Django and React.](https://user-images.githubusercontent.com/51070104/127129620-bae3b6b3-eb4f-4ad7-a694-5a3c1d6e37cb.png)
30+
## `Django API` Features
31+
32+
- Stack: : `Django` / `DRF` / **SQLite**
33+
- `Up-to-date dependencies`
34+
- **DB Layer**: Django Native `ORM`, `SQLite` persistence
35+
- **Auth**: JWT tokens managed via `PyJWT`
36+
- [API Definition](https://docs.appseed.us/boilerplate-code/api-unified-definition) - the unified API structure implemented by this server
3737

38-
<br />
3938

40-
## Start Django API Server
39+
<br />
4140

42-
Simple starter built with Python / Django Rest / Sqlite3 and JWT Auth. The authentication flow is based on [json web tokens](https://jwt.io).
41+
## ✨ How to use it
4342

44-
> Requirements
43+
Being a full-stack product, the backend and the frontend should be compiled and started separately.
44+
Before starting to compile the product, make sure you have the following tools installed in the environment:
4545

46-
- Django==3.2.5
47-
- djangorestframework==3.12.4
48-
- PyJWT==2.1.0
49-
- django-cors-headers==3.7.0
46+
- [NodeJS](https://nodejs.org/en/) - version `14.x` or higher
47+
- [GIT](https://git-scm.com/) - used to clone tjhe sources from Github
48+
- [Python3](https://www.python.org/) - used in many tools
5049

5150
<br />
5251

53-
> How to use the code
52+
### 👉 Start the Frontend
5453

55-
**Clone the sources**
54+
> **Step 1** - Once the project is downloaded, change the directory to `react-ui`.
5655
5756
```bash
58-
$ git clone https://github.com/app-generator/api-server-django.git
59-
$ cd api-server-django
57+
$ cd react-ui
6058
```
6159

62-
**Create a virtual environment**
63-
64-
```bash
65-
$ virtualenv -p python3 venv
66-
$ source venv/bin/activate
67-
```
60+
<br >
6861

69-
**Install dependencies** using pip
62+
> **Step 2** - Install dependencies via NPM or yarn
7063
7164
```bash
72-
$ pip install -r requirements.txt
65+
$ npm i
66+
// OR
67+
$ yarn
7368
```
7469

75-
**Start the API server**
70+
<br />
71+
72+
> **Step 3** - Start in development mode
7673
7774
```bash
78-
$ python manage.py migrate
79-
$ python manage.py runserver 5000
75+
$ npm run start
76+
// OR
77+
$ yarn start
8078
```
8179

82-
The API server will start using the default port `5000`.
83-
8480
<br />
8581

86-
## Start React UI
82+
At this point, the app is available in the browser `localhost:3000` (the default address).
8783

88-
To use the product Node JS (>= 12.x) is required and GIT to clone/download the project from the public repository.
8984

90-
**Step #1** - Clone the project
85+
<br />
86+
87+
### 👉 Start the Backend Server
88+
89+
> **Step 1** - Change the directory to `api-server-django`
9190
9291
```bash
93-
$ git clone https://github.com/app-generator/react-datta-able-dashboard.git
94-
$ cd react-datta-able-dashboard
92+
$ cd api-server-django
9593
```
9694

9795
<br >
9896

99-
**Step #2** - Install dependencies via NPM or yarn
97+
> **Step 2** - Install dependencies using a `virtual environment`
10098
10199
```bash
102-
$ npm i
103-
// OR
104-
$ yarn
100+
$ # Virtualenv modules installation (Unix based systems)
101+
$ virtualenv env
102+
$ source env/bin/activate
103+
$
104+
$ # Virtualenv modules installation (Windows based systems)
105+
$ # virtualenv env
106+
$ # .\env\Scripts\activate
107+
$
108+
$ pip install -r requirements.txt
105109
```
106110

107111
<br />
108112

109-
**Step #3** - Start in development mode
113+
> **Step 3** - Setup the database
110114
111115
```bash
112-
$ npm run start
113-
// OR
114-
$ yarn start
116+
$ python manage.py makemigrations
117+
$ python manage.py migrate
115118
```
116119

117120
<br />
118121

119-
## Configure the backend server
120-
121-
The product comes with a usable JWT Authentication flow that provides only the basic requests: login/logout/register.
122+
> **Step 4** - Start the API server (development mode)
122123
123-
**API Server URL** - `src/config/constant.js`
124-
125-
```javascript
126-
const config = {
127-
...
128-
API_SERVER: 'http://localhost:5000/api/' // <-- The magic line
129-
};
124+
```bash
125+
$ python manage.py runserver 5000
130126
```
131127

128+
Use the API via `POSTMAN` or `Swagger Dashboard` at `localhost:5000`.
129+
132130
<br />
133131

134-
**API Server Descriptor** - POSTMAN Collection
132+
## [React Datta Able PRO](https://appseed.us/product/datta-able-pro/full-stack/)
133+
134+
> For more components, pages and priority on support, feel free to take a look at this amazing starter:
135+
136+
Datta Able is a premium React Design now available for download as a full-stack app. Made of hundred of elements, designed blocks, and fully coded pages, Datta Able PRO is ready to help you create stunning websites and web apps.
135137

136-
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.
138+
- 👉 [React Datta Able PRO](https://appseed.us/product/datta-able-pro/full-stack/) - Product Page
139+
-`Enhanced UI` - more pages and components
140+
-`Priority` on support
141+
142+
<br >
137143

138-
- [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.
144+
![React Datta Able PRO - Full-Stack Starter generated by AppSeed.](https://user-images.githubusercontent.com/51070104/174492290-a581dc5f-6b4a-4f5e-822e-419a8b96a480.png)
139145

140146
<br />
141147

142148
---
143-
[Django React Datta Able](https://appseed.us/product/django-react-datta-able) - Provided by [CodedThemes](https://codedthemes.com/) and **AppSeed [App Generator](https://appseed.us/app-generator)**.
149+
**[Django React Datta Able](https://appseed.us/product/datta-able/api-server-django/react/)** - Full-Stack Seed project generated by **[App Generator](https://appseed.us/generator/)**.

api-server-django/.dockerignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
env
2+
.dockerignore
3+
Dockerfile
4+
venv

api-server-django/.gitignore

Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
build/
12+
develop-eggs/
13+
dist/
14+
downloads/
15+
eggs/
16+
.eggs/
17+
lib/
18+
lib64/
19+
parts/
20+
sdist/
21+
var/
22+
wheels/
23+
pip-wheel-metadata/
24+
share/python-wheels/
25+
*.egg-info/
26+
.installed.cfg
27+
*.egg
28+
MANIFEST
29+
30+
# PyInstaller
31+
# Usually these files are written by a python script from a template
32+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
33+
*.manifest
34+
*.spec
35+
36+
# Installer logs
37+
pip-log.txt
38+
pip-delete-this-directory.txt
39+
40+
# Unit test / coverage reports
41+
htmlcov/
42+
.tox/
43+
.nox/
44+
.coverage
45+
.coverage.*
46+
.cache
47+
nosetests.xml
48+
coverage.xml
49+
*.cover
50+
*.py,cover
51+
.hypothesis/
52+
.pytest_cache/
53+
54+
# Translations
55+
*.mo
56+
*.pot
57+
58+
# Django stuff:
59+
*.log
60+
local_settings.py
61+
db.sqlite3
62+
db.sqlite3-journal
63+
64+
# Flask stuff:
65+
instance/
66+
.webassets-cache
67+
68+
# Scrapy stuff:
69+
.scrapy
70+
71+
# Sphinx documentation
72+
docs/_build/
73+
74+
# PyBuilder
75+
target/
76+
77+
# Jupyter Notebook
78+
.ipynb_checkpoints
79+
80+
# IPython
81+
profile_default/
82+
ipython_config.py
83+
84+
# pyenv
85+
.python-version
86+
87+
# pipenv
88+
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
89+
# However, in case of collaboration, if having platform-specific dependencies or dependencies
90+
# having no cross-platform support, pipenv may install dependencies that don't work, or not
91+
# install all needed dependencies.
92+
#Pipfile.lock
93+
94+
# PEP 582; used by e.g. github.com/David-OConnor/pyflow
95+
__pypackages__/
96+
97+
# Celery stuff
98+
celerybeat-schedule
99+
celerybeat.pid
100+
101+
# SageMath parsed files
102+
*.sage.py
103+
104+
# Environments
105+
.env
106+
.venv
107+
env/
108+
venv/
109+
ENV/
110+
env.bak/
111+
venv.bak/
112+
113+
# Spyder project settings
114+
.spyderproject
115+
.spyproject
116+
117+
# Rope project settings
118+
.ropeproject
119+
120+
# mkdocs documentation
121+
/site
122+
123+
# mypy
124+
.mypy_cache/
125+
.dmypy.json
126+
dmypy.json
127+
128+
# Pyre type checker
129+
.pyre/
130+
.env__

0 commit comments

Comments
 (0)