https://github.com/net2devcrypto/soroban-nextjs-vote-dapp-with-freighter
A Stellar Soroban Smart Contract and NextJS Front-end App that integrates the Freighter wallet that enables users to vote in proposals.
https://github.com/net2devcrypto/soroban-nextjs-vote-dapp-with-freighter
dapp decentralized freighter nextjs smart-contract soroban stellar web3
Last synced: 3 months ago
JSON representation
A Stellar Soroban Smart Contract and NextJS Front-end App that integrates the Freighter wallet that enables users to vote in proposals.
- Host: GitHub
- URL: https://github.com/net2devcrypto/soroban-nextjs-vote-dapp-with-freighter
- Owner: net2devcrypto
- Created: 2024-05-08T16:30:41.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-08T17:11:52.000Z (about 1 year ago)
- Last Synced: 2025-02-14T23:32:38.903Z (5 months ago)
- Topics: dapp, decentralized, freighter, nextjs, smart-contract, soroban, stellar, web3
- Language: JavaScript
- Homepage:
- Size: 86.9 KB
- Stars: 0
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Soroban NextJS Vote dApp with Freighter Wallet
A Stellar Soroban Smart Contract and NextJS Front-end App that integrates the Freighter wallet that enables users to vote in proposals.
![]()
> [!NOTE]
> THE FILES ATTACHED TO THIS REPO ARE FOR EDUCATIONAL PURPOSES ONLY.
> NOT FINANCIAL ADVICE
> USE IT AT YOUR OWN RISK, I'M NOT RESPONSIBLE FOR ANY USE, ISSUES.Repo Instructions
Step 1
Download or clone this repo, then deploy the n2d-soroban-votecontract-v1.rs smart contract in the Soroban Testnet
Follow this tutorial video if you aren't familiar with Soroban contract deployments:
Save the contract address once deployed!
Step 2
Navigate to the repo folder once downloaded or cloned then install the NextJS instance.
```shell
cd name-of-folder
npm i
```Step 3
Update the contract address in the soroban.js file with the one obtained on step 1.
```shell
let contractAddress = 'CAAN5X32XWBIX3Q52BR4AJDVBAXPC5M3MVVPAVE5HVES2VWJBPO573L2';
```CTRL + S to save file!
Step 4
Install the Freighter browser wallet then create your wallet account. Switch it to testnet and fund with friendlybot tokens. (All done in the wallet app)
Step 5
Run the app, access it and test!
```shell
cd name-of-folder
npm run dev
```App should be accessible via: https://localhost:3000
Follow the tutorial video for guidance:
Join Stellar's Dev Discord Community
```shell
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
⣿⣿⣿⡟⠁⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠈⢹⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠄⢠⣴⣾⣵⣶⣶⣾⣿⣦⡄⠄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⢀⣾⣿⣿⢿⣿⣿⣿⣿⣿⣿⡄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⢸⣿⣿⣧⣀⣼⣿⣄⣠⣿⣿⣿⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠘⠻⢷⡯⠛⠛⠛⠛⢫⣿⠟⠛⠄⠄⢸⣿⣿⣿
⣿⣿⣿⡇⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢸⣿⣿⣿
⣿⣿⣿⣧⡀⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⠄⢡⣀⠄⠄⢸⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣆⣸⣿⣿⣿
⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿
```
http://discord.gg/stellardev