# Getting Started

## Prerequisite

```
Node: v16.15.0
Git: 2.30.1
```

## Create a new project

{% hint style="info" %}
**Prerequisite**: NodeJS, Git

**Optional for better development:** Redux Devtool\* (Chrome extension), Prettier\*\* (Editor Extension)

*\* Redux Devtool is optional, but it's very helpful to follow the application's states.*

*\*\* Prettier helps you maintain a consistent code style*
{% endhint %}

To create a new `my-app` project, you can conveniently create one by [create-senhub-app](https://www.npmjs.com/package/create-senhub-app).

```shell
npx create-senhub-app init my-app
```

Or,

```
yarn create senhub-app init my-app
```

Add this moment you can immediately start the project by `yarn start`, but we highly recommend following the next steps to be able to host your Dapp and submit it to the Sentre platform.

## Push the project on Github

Because the platform only supports **Github** currently, you have to host your repo; and your DApp later on; on **Github**.

Choose the **New** button to create a new repository.

![Choose New to create a new repository.](https://3606779243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSuDatsiBSDcGYiS7br6%2Fuploads%2F2yDpwM4utR6qLf7RyHm5%2FScreen%20Shot%202021-11-21%20at%2014.54.24.png?alt=media\&token=b36e0daa-c0a8-4fb5-a0d2-35e7762ebd5a)

Fill in the repository name, then click **Create repository**.

![Enter the project's name.](https://3606779243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSuDatsiBSDcGYiS7br6%2Fuploads%2FnQE2rjumbAvQ3PpzCz6o%2FScreen%20Shot%202021-11-21%20at%2014.58.57.png?alt=media\&token=412ca2bf-92e4-451c-8a3e-e600b6d7ae6e)

After the successful creation, you will see something necessary to connect your local project to the repository.

![Information to connect.](https://3606779243-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDSuDatsiBSDcGYiS7br6%2Fuploads%2FOji6bAqJ8pFzv1gbJmyG%2FScreen%20Shot%202021-11-21%20at%2015.03.44.png?alt=media\&token=5ce1dccb-3add-414e-9248-51ffc40a3e1b)

Follow the second section in the info with additional commands to connect to the local project. For example:

```
cd ./my-app
git init
git remote add origin git@github.com:tuphan-dn/my-app.git
git branch -M master
git add .
git commit -m "first commit"
git push -u origin master
```

## Start

Now you can start the project:

```shell
yarn start
```
