> For the complete documentation index, see [llms.txt](https://codedthemes.gitbook.io/datta/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://codedthemes.gitbook.io/datta/quick-start.md).

# Quick Start

### Installation

Navigate to your root folder **`(i.e. datta-able-react-hook-reactstrap)`**

```bash
c:\>cd datta-able-react-hook-reactstrap
```

Install Packages by **npm** or **yarn** as per your preferences. Here we are using **`yarn`** a package manager.

```bash
c:\datta-able-react-hook-reactstrap> yarn
```

{% hint style="warning" %}
If you are using npm, please use **npm i**&#x20;
{% endhint %}

{% hint style="info" %}
**We would recommend yarn over npm**. Why? see this: <https://www.whitesourcesoftware.com/free-developer-tools/blog/npm-vs-yarn-which-should-you-choose/>
{% endhint %}

### Start

After package installation, you can start your app by using **`yarn start`** command

```bash
c:\datta-able-react-hook-reactstrap> yarn start
```

This will start your local server at **`http://localhost:3000`** Also, your terminal shows the following.

```javascript
Compiled successfully!

You can now view datta-able-react-hook-reactstrap in the browser.

Local:            http://localhost:3000    
On Your Network:  http://192.168.29.77:3000

Note that the development build is not optimized.
To create a production build, use npm run build.
```

### Build & Deploy

This might be too early to deploy but it is always good to know how to deploy.

To build your app in production use **`npm run build`** command

```bash
c:\datta-able-react-hook-reactstrap> yarn build
or
c:\datta-able-react-hook-reactstrap> npm run build
```

## Troubleshooting

1. This project uses **Yarn (via Corepack)** for dependency management. The required Yarn version is specified in the `package.json` file, and Corepack ensures the correct version is used automatically. There's no need to install Yarn globally.

**If Corepack is not available:**

Corepack is included with Node.js versions 16.10+ by default. If it's not installed or enabled:

1. Ensure you’re using Node.js 16.10 or higher.
2. Enable Corepack by running : `corepack enable`
3. If Corepack is unavailable, update Node.js to a supported version.

After Corepack is enabled, simply run `yarn` commands, and the correct version will be handled for you automatically. For more information about Yarn and Corepack, refer documentation:

1. [https://yarnpkg.com/getting-started/install](<&#xD;&#xA;https://yarnpkg.com/getting-started/install>)
2. <https://yarnpkg.com/corepack>

{% hint style="info" %}
**You’ll need to have Node v12.x.x or later on your local development machine** (but it’s not required on the server). You can use [nvm](https://github.com/creationix/nvm#installation) (macOS/Linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows#node-version-manager-nvm-for-windows) to easily switch Node versions between different projects.
{% endhint %}
