Sentre
Search…
Getting Started

Prerequisite

1
Node: v16.15.0
2
Git: 2.30.1
Copied!

Create a new project

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
To create a new my-app project, you can conveniently create one by sen-scripts.
1
npm i -g @senswap/sen-scripts
2
sen-scripts senhub my-app
Copied!
Or,
1
npx @senswap/sen-scripts senhub my-app
Copied!
Add this moment you can immediately start the project by npm 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.
Fill in the repository name, then click Create repository.
Enter the project's name.
After the successful creation, you will see something necessary to connect your local project to the repository.
Information to connect.
Follow the second section in the info with additional commands to connect to the local project. For example:
1
cd ./my-app
2
git remote add origin [email protected]:tuphan-dn/my-app.git
3
git branch -M master
4
git add .
5
git commit -m "first commit"
6
git push -u origin master
Copied!

Start

Now you can start the project:
1
npm start
Copied!