Sentre Legacy
  • 🥳Welcome
  • Getting Started
  • DApp Manifest
  • Folder Structure
  • Available Scripts
  • Development
    • View
    • Model & Controllers
    • Providers
      • UI Provider
      • Wallet Provider
      • Account Provider
      • Mint Provider
    • Static
    • Global variables
    • Configs
  • Advanced Usage
    • ☀️Theme
    • 👘Customizing Styles
    • 🪝Hooks
  • 🤩Submitting DApps
  • References
  • Best Practices
  • Troubleshoots
  • 🎨Design Pricinples
    • Button
    • Card
    • Checkbox
    • Color
    • Corner radius
    • Drawer
    • Dropdown
    • Grid
    • Icons
    • Input
    • List
    • Menu
    • Modal
    • Radio
    • Select
    • Shadow
    • Spacing
    • Switch
    • Tabs
    • Tooltip
    • Table
    • Typography
  • 📄Litepaper
    • Introduction
    • Industry Problems
    • Sentre: An All-in-one Solution
      • The Open Protocol
      • Liquidity Efficiency
    • SEN as the Heart of the Ecosystem
      • Asymmetric Deposit
      • Adaptive Fee Model
      • The Triad Pool
      • Simulated Mesh Trading
      • Token Use Cases
    • Conclusion
Powered by GitBook
On this page
  • Prerequisite
  • Create a new project
  • Push the project on Github
  • Start

Getting Started

PreviousWelcomeNextDApp Manifest

Last updated 2 years ago

Prerequisite

Node: v16.15.0
Git: 2.30.1

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 .

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.

Fill in the repository name, then click Create repository.

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

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:

yarn start
create-senhub-app
Choose New to create a new repository.
Enter the project's name.
Information to connect.