https://github.com/jongan69/fitmint
An App for Minting FVM NFT's via Working Out. Built Under The 2023 FVM Space Warp Hackathon.
https://github.com/jongan69/fitmint
ethereum react-native redux solidity
Last synced: about 1 year ago
JSON representation
An App for Minting FVM NFT's via Working Out. Built Under The 2023 FVM Space Warp Hackathon.
- Host: GitHub
- URL: https://github.com/jongan69/fitmint
- Owner: jongan69
- License: mit
- Created: 2023-01-21T22:28:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-02-29T20:39:29.000Z (over 2 years ago)
- Last Synced: 2025-06-21T10:05:41.619Z (about 1 year ago)
- Topics: ethereum, react-native, redux, solidity
- Language: TypeScript
- Homepage: https://gen-iworkout.vercel.app/
- Size: 16.2 MB
- Stars: 2
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# FitMint
### Unimplemented AI Workout + API
[AI Workout](https://gen-iworkout.vercel.app/)
[](https://github.com/jongan69/FitMint/actions/workflows/codeql-analysis.yml)
[](https://github.com/jongan69/FitMint/actions/workflows/validate.yml)
- React Native
- Solidity Contract ABI usage
- `api` directory w/ Nextjs thirdwebjs sdk
- Web3 Auth SDK
- Nhost SDK
Includes demo solidity contracts with a `compile-contracts` command in `package.json`
Built under The FVM ETH Global Hackathon
------
## Demo
[LATEST APP v1.00 (Expo)](https://expo.dev/@jongan69/FitMint?serviceType=classic&distribution=expo-go)
[LATEST CONTRACT X.XX (FVM Wallabey Network)]
------
### Setup
1. Create Web3Auth.io Account at
2. Copy into credentials .env and constant.js
Note: `WEB_API_ROUTES` would be the URL of the deployed nextjs app
ie: vercel
3. yarn install inside the root and web directories
Note: There is now an included `continue as guest` button
***For smart contract functionality***
1. Compile + Deploy your contract
Note: `compile-contracts` does not deploy
2. Import `abi` into `etherRPC.js` and interface with corresponding contract functions
3. Import the functions where ever needed throughout app
------
### Usage
`yarn ios` - Run iOS App
`yarn android` - Run Android App
`yarn web` - Start Nextjs app
`yarn compile-contracts` - Compile the Contract in `./contracts/` for abi, may need to edit `package.json`
For NHOST Database/Auth:
in `.env` -> backendUrl: "YOUR_NHOST_BACKEND_URL"
To Run Nextjs App:
`yarn web` in root directory
------
### To do
[Chaining Contract Calls](https://blog.chain.link/smart-contract-call-another-smart-contract/)
React Native Work:
- [x] Expo React Native App
- [x] Web3Auth - React Native SDK
- [x] Add Redux store
- [x] Switched Context with Redux Store
- [x] Create all redux slices w/ actions
- [x] Replace Reducer Functions with Secure Store Functions
- [x] Create 7 Minute Workout app in React Native
- [->] Connect Mobile UI to Smart Contract Minting and Getting Functions
- [->] Create Feed for all failed and minted workouts
Solidity Smart Contract Work:
- [->] Build corresponding contract for Minting NFTs
- [->] Deploy contract to FVM
API Work:
- [->] Allow user into discord if NFT was minted w/ Discord user