Giter Site home page Giter Site logo

app-generator / react-soft-ui-dashboard-pro Goto Github PK

View Code? Open in Web Editor NEW
5.0 4.0 0.0 8 KB

React Dashboard - Soft UI Dashboard PRO | AppSeed

Home Page: https://appseed.us/product/soft-ui-dashboard-pro/full-stack/

License: Other

react fullstack appseed soft-ui-dashboard

react-soft-ui-dashboard-pro's Introduction

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.


Features

  • โœ… Innovative MUI Design - Crafted by Creative-Tim
  • โœ… React, Redux, Redux-persist
  • โœ… Authentication: JWT Login/Register/Logout
  • โœ… Full-stack ready using Node JS API Server (open-source project)
    • Features: Typescript / SQLite / TypeORM / Joy (validation) / Passport library - passport-jwt strategy.

Full-Stack Soft Dashboard PRO - Premium starter provided by AppSeed and Creative-Tim.


Tested with:

NodeJS NPM YARN Status
v16.13.0 v8.1.0 v1.22.5 โœ”๏ธ
v14.15.0 v6.14.8 v1.22.5 โœ”๏ธ
v12.22.0 v6.14.11 v1.22.5 โœ”๏ธ

How to use it

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

๐Ÿ‘‰ Step 1 - Download the product from the official page

$ unzip react-soft-ui-dashboard-pro.zip
$ cd react-soft-ui-dashboard-pro

๐Ÿ‘‰ Step 2 - Install dependencies via NPM or yarn

$ npm i
// OR
$ yarn

๐Ÿ‘‰ Step 3 - Edit the .env using the template .env.sample.

REACT_APP_BACKEND_SERVER='http://localhost:5000/api/'

๐Ÿ‘‰ Step 4 - Start in development mode

$ npm run start 
// OR
$ yarn start

Backend Integration

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

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

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

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

Register implementation:

  • Frontend method with call to backend
  • Form validation
  • Error handling

Login implementation:

  • Frontend method with call to backend
  • Form validation
  • Error handling

Logout implementation:

  • Frontend method with call to backend

User Context:

  • The user account is now saved both to the React.Context wrapper and localStorage

Protected routes:

  • The user cannot access protected routes like /admin, /rtl without being logged in.
  • Example of 3 different routes:
    <ProtectedRoute path="/admin" component={AdminLayout} />
    <ProtectedRoute path="/rtl" component={RtlLayout} />
    <Route path="/auth" component={AuthLayout} />

API Server Descriptor - POSTMAN Collection

The API Server definition is provided by the Nodejs API Server

  • API POSTMAN Collection - can be used to mock (simulate) the backend server or code a new one in your preferred framework.

Node JS API Server

The product is also open-source and cis already configured to work with Berry Dashboard Template - product features:

  • Nodejs / Express server
  • JWT authentication (passport-jwt strategy)
  • Persistence: MongoDB

Links


Node JS API - Open-source API server built on top of Express Nodejs Framework.



Full-Stack Soft Dashboard PRO - Provided by Creative-Tim and AppSeed.

react-soft-ui-dashboard-pro's People

Contributors

app-generator avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-soft-ui-dashboard-pro's Issues

[Flask API] Logout doesn't work

On the PRO version: On starting up React FE and Flask API BE, it directly shows me as logged in; and on hitting 'Sign Out' in the top right corner, it doesn't sign me out.
Are there any settings/configs that need to be changed to make the base version work?
Do provide the steps, thank you.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.