React Node JS Datta Able
Open-source Full Stack seed project built in React and Node JS on top of Datta Able Dashboard
Open-source full-stack seed project coded in React and Node JS on top of a modern design from CodedThemes. The React / NodeJS codebase is already configured with a Mongo database, API, and authentication flow.
React Node JS - Datta Able (free version).

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, a decent version of Node JS (>= 12.x) 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!
​

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:
    Compile and start a simple Node JS API already built to work with this frontend
    Mock a test server using the API Interface definition
Here we will use the first version and build a real API server coded in Node JS/Express and MongoDB.
API Server Description
Express / Nodejs Starter with JWT authentication, MongoDB where authentication is based on json web tokens. passport-jwt strategy is used to handle the Email/Password authentication. After a successful login, the generated token is sent to the requester.
Dependencies
Step #1 - Clone the API Server from Github
1
$ git clone https://github.com/app-generator/api-server-nodejs.git
2
$ cd api-server-nodejs
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 dev
2
// OR
3
$ yarn dev
Copied!
The API server will start using the PORT specified in .env file, default value 5000 , same as the one expected by the front end.
From this point, the React Product should be able to authenticate and register new users.
React Node JS Datta Able - Login Page.

Resources

Last modified 2mo ago