Flask React Datta Able
Open-source Full Stack seed project built in React and Flask on top of Datta Able Dashboard
Open-source full-stack seed project coded in React and Flask on top of a modern design from CodedThemes. The React / Flask codebase is already configured with an SQLite database, API, and JWT token-based authentication flow.
Flask React Datta Able - Fullstack Product.

Product features

The product expects a running API backend that exposes an interface for login/logout and register actions. By default, the guest users are redirected to the login page. Once the user is authenticated using an existing account or the new one, all private pages are accessible. Here are the steps to compile the product.
Dependencies
To use the product, Python3 is required, and GIT command-line tool to clone/download the project from the public repository.
Step #1 - Clone the project
1
$ git clone https://github.com/app-generator/react-datta-able-dashboard.git
2
$ cd react-datta-able-dashboard
Copied!
Step #2 - Install dependencies via NPM or yarn
1
$ npm i
2
// OR
3
$ yarn
Copied!
Step #3 - Start in development mode
1
$ npm run start
2
// OR
3
$ yarn start
Copied!
Step #4 - Configure the backend - src/config.js
1
const config = {
2
...
3
API_SERVER: 'http://localhost:5000/api/' // <-- The magic line
4
};
Copied!
​

Flask API Server

To use the product and see all features in action an API server should be up and running. This can be done in two ways:
Flask API Server - Open-source Product.
Here we will use the first option and build a real API server coded in Flask Framework on top of Flask-RestX Library with SQLite persistence.
​
Step #1 - clone the project using GIT
1
$ git clone https://github.com/app-generator/api-server-flask.git
2
$ cd api-server-flask
Copied!
Step #2 - Install dependencies (using a virtual environment)
1
$ # Virtualenv modules installation (Unix based systems)
2
$ virtualenv env
3
$ source env/bin/activate
4
$
5
$ # Virtualenv modules installation (Windows based systems)
6
$ # virtualenv env
7
$ # .\env\Scripts\activate
Copied!
Install dependencies in once the virtualenv is activated
1
$ pip install -r requirements.txt
Copied!
Step #3 - Prepare the environment
1
$ export FLASK_APP=run.py
2
$ export FLASK_ENV=development
Copied!
Or for Windows-based systems
1
$ (Windows CMD) set FLASK_APP=run.py
2
$ (Windows CMD) set FLASK_ENV=development
3
$
4
$ (Powershell) $env:FLASK_APP = ".\run.py"
5
$ (Powershell) $env:FLASK_ENV = "development"
Copied!
Step #4 - Initialize the database, check run.py for shell context
1
$ flask shell
2
>>> from api import db
3
>>> db.create_all()
Copied!
Step #5 - Start the API server
1
$ python run.py
2
// OR
3
$ flask run
Copied!
Visit http://localhost:5000 in your browser. The API server will be running.
With backend and frontend up & running, we can start using the product, register. and authenticate. The React UI will reveal the private pages once the users are authenticated.
Flask React Datta Able - Login Page.
Last modified 15d ago