Skip to content

Commit 3f40541

Browse files
author
Alexandru Comanescu
committed
Update dependencies and integrate Zalter authentication
1 parent 1b2d179 commit 3f40541

28 files changed

+4235
-5982
lines changed

.env.example

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
NEXT_PUBLIC_ENABLE_ZALTER_AUTH=""
2+
NEXT_PUBLIC_ZALTER_PROJECT_ID=""

CHANGELOG.md

+15-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,17 @@
1+
## V2.1.0
2+
3+
###### Sep 15, 2022
4+
5+
- Integrate Zalter Authentication
6+
- Update dependencies
7+
8+
## V2.0.0
9+
10+
###### Nov 8, 2021
11+
12+
- Migrate to Next.js
13+
- Update design system
14+
115
# Change Log
216

317
## V1.0.0
@@ -26,7 +40,7 @@
2640
- Remove unused `.scss` files from `assets` folder
2741
- Replace `.jsx` with `.js`
2842
- Replace Class Components with Function Components
29-
- Replace custom cumponents (Portlet) with Material-UI built-in components
43+
- Replace custom components (Portlet) with Material-UI built-in components
3044
- Replace dependency `classnames` with `clsx`
3145
- Update dependencies
3246
- Update the layout to match the PRO version

README.md

+47-17
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44

55
[![Material Kit - React](https://github.com/devias-io/material-kit-react/blob/main/public/static/thumbnail.png)](https://material-kit-react.devias.io/)
66

7-
> Free React Admin Dashboard made with [MUI's](https://mui.com/?ref=devias-io) components, [React](https://reactjs.org/?ref=devias-io) and of course [Next.js](https://github.com/vercel/next.js/?ref=devias-io) to boost your app development process!
7+
> Free React Admin Dashboard made with [MUI's](https://mui.com/?ref=devias-io)
8+
> components, [React](https://reactjs.org/?ref=devias-io) and of
9+
> course [Next.js](https://github.com/vercel/next.js/?ref=devias-io) to boost your app development
10+
> process!
811
912
## Demo
1013

@@ -17,52 +20,77 @@
1720
- [Settings Page](https://material-kit-react.devias.io/settings)
1821

1922
## Free Figma Community File
20-
- [Duplicate File](https://www.figma.com/community/file/1039837897183395483/Devias-Dashboard-Design-Library-Kit)
23+
24+
- [Duplicate File](https://www.figma.com/community/file/1039837897183395483/Devias-Dashboard-Design-Library-Kit)
2125

2226
## Upgrade to PRO Version
2327

24-
We also have a pro version of this product which bundles even more pages and components if you want to save more time and design efforts :)
28+
We also have a pro version of this product which bundles even more pages and components if you want
29+
to save more time and design efforts :)
2530

26-
| Free Version (this one) | [Material Kit Pro - React](https://material-ui.com/store/items/devias-kit-pro/) |
27-
| ------------------------ | :----------------------------------------------------------- |
28-
| **7** Demo Pages | **40+** demo pages
29-
| - | ✔ Dark & light mode
30-
| - | ✔ Authentication with *Amplify**, **Auth0**, **JWT** and **Firebase**
31-
| - | ✔ TypeScript version - for Standard Plus and Extended license
32-
| - | ✔ Design files (sketch & figma) - for Standard Plus and Extended license
33-
| - | ✔ Complete users flows
31+
| Free Version (this one) | [Material Kit Pro - React](https://material-ui.com/store/items/devias-kit-pro/) |
32+
|----------------------------------| :----------------------------------------------------------- |
33+
| **9** Demo Pages | **40+** demo pages
34+
| ✔ Authentication with **Zalter** | ✔ Authentication with **Amplify**, **Auth0**, **JWT** and **Firebase**
35+
| - | ✔ Dark & light mode
36+
| - | ✔ TypeScript version - for Standard Plus and Extended license
37+
| - | ✔ Design files (sketch & figma) - for Standard Plus and Extended license
38+
| - | ✔ Complete users flows
3439

3540
## Quick start
3641

37-
- [Download from Github](https://github.com/devias-io/material-kit-react/archive/master.zip) or [Download from Devias](https://devias.io/products/material-kit-react) or clone the repo: `git clone https://github.com/devias-io/material-kit-react.git`
42+
- [Download from Github](https://github.com/devias-io/material-kit-react/archive/master.zip)
43+
or [Download from Devias](https://devias.io/products/material-kit-react) or clone the
44+
repo: `git clone https://github.com/devias-io/material-kit-react.git`
3845

39-
- Make sure your NodeJS and npm versions are up to date for `React 17`
46+
- Make sure your Node.js and npm versions are up to date for `React 18`
4047

4148
- Install dependencies: `npm install` or `yarn`
4249

4350
- Start the server: `npm run dev` or `yarn dev`
4451

4552
- Views are on: `localhost:3000`
4653

54+
## Setup authentication (optional)
55+
56+
1. Sign in on **Zalter Dashboard** (https://dashboard.zalter.com) and create your **Zalter project**.
57+
58+
2. Open your project settings and activate **Email Magic Link** authentication.
59+
This authentication method requires `redirect URIs` setup, so while in development you need to add `http://localhost:3000/sign-in/confirm`.
60+
For production replace `localhost:3000` with your own domain.
61+
62+
3. Copy `.env.example` file and rename it to `.env`
63+
64+
4. Open `.env` file and enable the Zalter authentication, then set your own Zalter project ID.
65+
66+
```bash
67+
NEXT_PUBLIC_ENABLE_ZALTER_AUTH="true"
68+
NEXT_PUBLIC_ZALTER_PROJECT_ID="<your-project-id>"
69+
```
70+
71+
For more information about Zalter Authentication access https://developer.zalter.com.
72+
4773
## File Structure
4874

4975
Within the download you'll find the following directories and files:
5076

5177
```
5278
material-kit-react
5379
54-
┌── .eslintrc.json
80+
┌── .env.example
81+
├── .eslintrc.json
5582
├── .gitignore
5683
├── CHANGELOG.md
57-
├── jsconfig.json
5884
├── LICENSE.md
85+
├── next.config.js
5986
├── package.json
6087
├── README.md
6188
├── public
6289
└── src
6390
├── __mocks__
6491
├── components
6592
├── icons
93+
├── lib
6694
├── theme
6795
├── utils
6896
└── pages
@@ -72,10 +100,13 @@ material-kit-react
72100
├── account.js
73101
├── customers.js
74102
├── index.js
75-
├── login.js
103+
├── index.js
76104
├── products.js
77105
├── register.js
78106
└── settings.js
107+
└── sign-in
108+
├── confirm.js
109+
└── index.js
79110
```
80111

81112
## Resources
@@ -93,4 +124,3 @@ material-kit-react
93124
## Contact Us
94125

95126
- Email Us: [email protected]
96-
- [Follow us on Instagram](https://www.instagram.com/deviasio/)

jsconfig.json

-8
This file was deleted.

next.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
reactStrictMode: true
3+
};

0 commit comments

Comments
 (0)