Skip to main content

Django React Datta PRO

Premium seed project built in React and Django on top of Datta Able Dashboard (PRO version)

Open-source full-stack seed project coded in React and Django on top of a modern design from CodedThemes. The React / Django codebase is already configured with an SQLite database, API, and JWT token-basedauthentication flow.

Django React Datta PRO


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, Nodejs, and Python3 are required in order to compile the product (backend & frontend).

Step #1 - Download the sources from the product page (requires a purchase)

$ unzip react-datta-able-dashboard-pro.zip
$ cd react-datta-able-dashboard-pro

Step #2 - Install dependencies via NPM or yarn

$ npm i
// OR
$ yarn

Step #3 - Start in development mode

$ npm run start
// OR
$ yarn start

Step #4 - Configure the backend - src/config.js

const config = {
...
API_SERVER: 'http://localhost:5000/api/' // <-- The magic line
};

Django 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:

Django API Server - Open-source product.

Here we will use the first option and build a real API server coded in Django Framework on top of DRF Library with SQLite persistence.

Step #1 - Clone the API Server from Github

$ git clone https://github.com/app-generator/api-server-django.git
$ cd api-server-django

Step #2 - Install dependencies

$ virtualenv -p python3 venv
$ source venv/bin/activate
$
$ pip install -r requirements.txt

Step #3 - Start the APi Server

$ python manage.py migrate
$ python manage.py runserver 5000

The API server will start using the default port 5000.

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.

Django React Datta PRO


Resources