Skip to content

Commit c272301

Browse files
author
App Generator
committed
Release v2.0.1 - Added JWT Authentication
1 parent 75ddf5d commit c272301

File tree

3 files changed

+227
-1
lines changed

3 files changed

+227
-1
lines changed

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Change Log
2+
3+
## [2.0.1] 2021-10-24
4+
### Improvements
5+
6+
- Added JWT Authentication Flow
7+
- Links Update (minor)
8+
9+
## [2.0.0] 2021-10-09
10+
### Initial Import
11+
12+
- Soft UI Dashboard React PRO: v2.0.0
13+
- Migration from Material-UI v4 to Material-UI v5.
14+
- Customizing Autocomplete component based on the Soft Design.
15+
- Customizing the TextField component based on the Soft Design.
16+

LICENSE.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Commercial License
2+
3+
Copyright (c) 2019 - present [AppSeed](http://appseed.us/) / [Creative-Tim](https://www.creative-tim.com/)
4+
5+
<br />
6+
7+
## Licensing Information
8+
9+
All commercial web apps (including this one) provided by AppSeed are released under two configurations:
10+
11+
<br />
12+
13+
### [Personal License](https://github.com/app-generator/license-personal)
14+
15+
> For full information please access [Personal License](https://github.com/app-generator/license-personal)
16+
17+
- Solo-developers, Small teams (max 3 members)
18+
- Updates: 6mo.
19+
- LIVE Support: 6mo.
20+
- Create single personal website/app
21+
- Create single website/app for client
22+
- Paying end-users - YES
23+
- Create SaaS application - NO
24+
- Production deployment assistance - NO
25+
26+
<br />
27+
28+
### [StartUP License](https://github.com/app-generator/license-startup)
29+
30+
> For full information please access [StartUP License](https://github.com/app-generator/license-startup)
31+
32+
- Medium teams (max 9 members)
33+
- Updates: 12mo.
34+
- LIVE Support: 12mo.
35+
- Create single personal website/app
36+
- Create single website/app for client
37+
- Paying end-users - YES
38+
- Create SaaS application - NO
39+
- Production deployment assistance - NO
40+
41+
<br />
42+
43+
### [Company License](https://github.com/app-generator/license-company)
44+
45+
> For full information please access [Company License](https://github.com/app-generator/license-company)
46+
47+
- Large teams (unlimited members)
48+
- Updates: 12mo.
49+
- LIVE Support: 12mo.
50+
- Create multiple personal websites/apps
51+
- Create multiple websites/apps for clients
52+
- Paying end-users - YES
53+
- Create SINGLE SaaS application - YES
54+
- Production deployment assistance - NO
55+
56+
<br />
57+
58+
---
59+
For more information regarding licensing, please contact the AppSeed Service < *support@appseed.us* >

README.md

Lines changed: 152 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,152 @@
1-
# react-soft-ui-dashboard-pro
1+
# [Full-stack Soft Dashboard PRO](https://appseed.us/product/full-stack/react-soft-dashboard)
2+
3+
Made of hundred of elements, designed blocks, and fully coded pages, Soft UI Dashboard PRO is ready to help you create stunning websites and web apps. The product comes with a simple JWT authentication flow: **login/register/logout** powered by a [Node JS API Server](https://github.com/app-generator/api-server-nodejs-pro) (PRO version).
4+
5+
<br />
6+
7+
> Features
8+
9+
- Premium Material UI design - Crafted by [Creative-Tim](https://bit.ly/3fKQZaL/)
10+
- React, Redux, Redux-persist
11+
- Authentication: JWT Login/Register/Logout
12+
- [Node JS API server](https://github.com/app-generator/api-server-nodejs-pro) for a complete full-stack experience
13+
14+
<br />
15+
16+
> Links
17+
18+
- [Full-stack Soft Dashboard PRO](https://appseed.us/product/full-stack/react-soft-dashboard) - product page
19+
- [Full-stack Soft Dashboard PRO](https://fullstack-react-soft-dashboard.appseed-srv1.com/) - LIVE Demo
20+
- [Node JS API Server](https://github.com/app-generator/api-server-nodejs-pro) (PRO version) - the backend server
21+
- Support via **Github** (issues tracker) and [Discord](https://appseed.us/support) - LIVE Assistance
22+
23+
<br >
24+
25+
![Full-stack Soft Dashboard PRO - Full-stack product built in React and Node JS by AppSeed and Creative-Tim](https://user-images.githubusercontent.com/51070104/138590484-794474cc-c709-458e-8340-695743bc9788.gif)
26+
27+
<br />
28+
29+
## How to use it
30+
31+
To use the product Node JS (>= 12.x) is required and GIT to clone/download the project from the public repository.
32+
33+
**Step #1** - Clone the project
34+
35+
```bash
36+
$ git clone https://github.com/app-generator/priv-react-soft-ui-dashboard-pro.git
37+
$ cd priv-react-soft-ui-dashboard-pro
38+
```
39+
40+
<br >
41+
42+
**Step #2** - Install dependencies via NPM or yarn
43+
44+
```bash
45+
$ npm i
46+
// OR
47+
$ yarn
48+
```
49+
50+
<br />
51+
52+
**Step #3** - Start in development mode
53+
54+
```bash
55+
$ npm run start
56+
// OR
57+
$ yarn start
58+
```
59+
60+
<br />
61+
62+
## Backend Integration
63+
64+
> The backend API server address is saved in `src/config/constant.js`.
65+
66+
```javascript
67+
export const API_SERVER = "http://localhost:5000/api/";
68+
```
69+
70+
<br />
71+
72+
> Frontend api has been created at `src/api/auth.js`.
73+
74+
```javascript
75+
const axios = Axios.create({
76+
baseURL: `${baseURL}/api`,
77+
headers: { "Content-Type": "application/json" },
78+
});
79+
```
80+
81+
<br />
82+
83+
> Register implementation:
84+
85+
- Frontend method with call to backend
86+
- Form validation
87+
- Error handling
88+
89+
<br />
90+
91+
> Login implementation:
92+
93+
- Frontend method with call to backend
94+
- Form validation
95+
- Error handling
96+
97+
<br />
98+
99+
> Logout implementation:
100+
101+
- Frontend method with call to backend
102+
103+
<br />
104+
105+
> User Context:
106+
107+
- The user account is now saved both to the React.Context wrapper and localStorage
108+
109+
<br />
110+
111+
> Protected routes:
112+
113+
- The user cannot access protected routes like /admin, /rtl without being logged in.
114+
- Example of 3 different routes:
115+
116+
```javascript
117+
<ProtectedRoute path="/admin" component={AdminLayout} />
118+
<ProtectedRoute path="/rtl" component={RtlLayout} />
119+
<Route path="/auth" component={AuthLayout} />
120+
```
121+
122+
<br />
123+
124+
> **API Server Descriptor** - POSTMAN Collection
125+
126+
The API Server definition is provided by the [Nodejs API Server](https://github.com/app-generator/api-server-nodejs)
127+
128+
- [API POSTMAN Collection](https://github.com/app-generator/api-server-nodejs/blob/master/media/api.postman_collection.json) - can be used to mock (simulate) the backend server or code a new one in your preferred framework.
129+
130+
<br />
131+
132+
## Node JS API Server
133+
134+
The product is also open-source and cis already configured to work with Berry Dashboard Template - product features:
135+
136+
- Nodejs / Express server
137+
- JWT authentication (`passport-jwt` strategy)
138+
- Persistence: MongoDB
139+
140+
> Links
141+
142+
- [Node JS API](https://github.com/app-generator/api-server-nodejs) - source code
143+
- [Node JS API](https://appseed.us/boilerplate-code) - product page
144+
145+
<br />
146+
147+
![Node JS API - Open-source API server built on top of Express Nodejs Framework.](https://user-images.githubusercontent.com/51070104/124934824-c210a700-e00d-11eb-9d01-e05bd8bfb608.png)
148+
149+
<br />
150+
151+
---
152+
[Full-stack Soft Dashboard PRO](https://appseed.us/product/full-stack/react-soft-dashboard) - Provided by [Creative-Tim](https://bit.ly/3fKQZaL/) and **AppSeed [App Generator](https://appseed.us/app-generator)**.

0 commit comments

Comments
 (0)