React Material Dashboard - Full-stack Version
Tags: react, webdev, fullstack, appseed
Published: 2021-08-10 17:21:12

---
title: React Material Dashboard - Full-stack Version
published: true
description: The article presents the full-stack version of React Material Dashboard
tags: react, webdev, fullstack, appseed
cover_image: https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1kud7lpaee14oxdsud7l.jpg
canonical_url: https://appseed.us/full-stack/react-material-dashboard
---
Hello coders, 

This article presents the **Full-stack** version of **[React Material Dashboard](https://appseed.us/full-stack/react-material-dashboard)**, a premium design crafted by Creative-Tim now usable with multiple API Backend Servers: Node JS, Flask, Django. The UI comes with pre-configured JWT authentication powered by a [Unified API Interface](https://docs.appseed.us/boilerplate-code/api-server/api-unified-definition) that makes this product compliant with more than one backend: Node JS, Flask, Django (FASTapi and Laravel coming soon).

> *Thanks for reading!* - Content provided by **[App Generator](https://appseed.us/)**.

---

- [Full-stack React Material PRO](https://appseed.us/full-stack/react-material-dashboard) - LIVE Demo
- [Full-stack React Material PRO](https://fullstack-react-material-dashboard.appseed-srv1.com/) - product page

---

![Full-stack React Material Dashboard - The widgets page.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/twotn95m9i6291vrxu6q.jpg)

---

## Product Features

The product aims to help developers skip over the basics and start faster a new full-stack product already enhanced with authentication, a pixel-perfect UI powered by production-ready backends. The fact that makes this full-stack product unique is the JSON-API compliance over multiple servers: 

- [Node JS API](https://docs.appseed.us/boilerplate-code/api-server/node-js): Typescript, Flexible persistence (SQLite, Mongo), TypeORM, Validation 
- [Django API](https://docs.appseed.us/boilerplate-code/api-server/django): JWT Authentication over DRF, SQLite, Docker 
- [Flask API](https://docs.appseed.us/boilerplate-code/api-server/flask): powered by Flask-JWT-extended, SQL-Alchemy, Docker
- Coming soon APIs: FASTapi, Laravel API 

By default, the UI redirects the guest users to the login page. Once the user is authenticated, all private pages are unlocked. 

> Implemented JWT Authentication Flow: Login, Logout, Register. 

---

![Full-stack React Material Dashboard - The login page.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/iueaggig5lt9ojaz4hjl.jpg)

--- 

## How to use the product

**Full-stack React Material Dashboard** is built using a two-tier architecture where the UI is decoupled from the backend API server and communicates using requests secured by JWT tokens. The recommended way to start using this full-stack product is to follow a simple setup: 

- **Step #1** - Build and start the backend server
- **Step #2** - Build and start the UI
- **Create a new user** via the registration page
- Authenticate and access the private pages
- Add your magic on top of the existing codebase. 

---

## Start the backend server

As mentioned before, the UI is configured to work with many backend servers that share a common API interface: Django, Node JS, Flask. Based on your license (free or commercial) the access is granted to the requested API Server. On this page, we will compile and start the free version of [Node JS API](https://docs.appseed.us/boilerplate-code/api-server/node-js) (open-source product). 

> **Step #1** - Clone the sources

```bash
$ git clone https://github.com/app-generator/api-server-nodejs.git
$ cd api-server-nodejs
```

---

> **Step #2** - Install dependencies via NPM or Yarn

```bash
$ npm i
// OR
$ yarn
```

---

> **Step #3** - Run the SQLite migration and create the required tables

```bash
$ yarn typeorm migration:run
```

---

> **Step #4** - Start the API server - development mode

```bash
$ npm dev
// OR
$ yarn dev
```

The API interface used by the API is a simple JWT authentication layer that exposes the following methods: 

- USERS API:
    - `/api/users/register`: create a new user
    - `/api/users/login`: authenticate an existing user
    - `/api/users/logout`: delete the associated JWT token
    - `/api/users/checkSession`: check an existing JWT Token for validity
    - `/api/users/edit` - update the information associated with a registered user 

At this point, the backend API should be & and running on address: `http://localhost:5000` and we can move on with the setup and build the React UI.

---

## Start the React UI

The **React Material Dashboard** being a commercial product, a license is required before getting access to the source code. In case you don't have a license, please access the [product page](https://appseed.us/full-stack/react-material-dashboard) and purchase one. 

> **Step #1** - Clone the project

```bash
$ git clone https://github.com/app-generator/priv-react-material-dashboard-pro.git
$ cd priv-react-material-dashboard-pro
```

---

> **Step #2** - Install dependencies via NPM or yarn

```bash
$ npm i
// OR
$ yarn
```

---

> **Step #3** - Start in development mode

```bash
$ npm run start 
// OR
$ yarn start
```

---

> Template Page - Pricing cards

![Full-stack React Material Dashboard - Pricing cards page.](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/k0gfj6opcowrz4qvi6tw.jpg)
 
---

## Backend Integration

The backend API server address is saved in `src/config/constant.js`.

```javascript
export const API_SERVER = "http://localhost:5000/api/";
```

Frontend api has been created at `src/api/auth.js`.

```javascript
const axios = Axios.create({
    baseURL: `${baseURL}/api`,
    headers: { "Content-Type": "application/json" },
});
```

---

At this point this simple `full-stack` product should be up & usable to create and authenticate new users. For more resources and support, please access:

--- 

- Get assistance via [support](https://appseed.us/support) page
- Join [Discord](https://discord.gg/fZC6hup) - 24/7 LIVE assistance (registered users)
- [React Apps](https://appseed.us/apps/react) - free and commercial products
- [React Bundle](https://appseed.us/bundles/campaign) - a discounted multi-product bundle