DAGDA SEARCH | Back to results | Support

Flowstake · GitHub

Source: https://github.com/flowstake

@flowstake

Flowstake

Proof of Activity Network README.md

FlowStake

A fitness platform that combines exercise with blockchain technology, using Proof of Activity as a Stake. FlowStake enables users to earn cryptocurrency rewards by completing fitness challenges.

Features

Core Features

User Experience

Quick Start

# Install dependencies
npm install

# Set up environment variables
cp .env.example .env

# Start development server
npm run dev

# Build for production
npm run build

# Deploy contracts
npm run deploy

Environment Setup

Create .env file with the following variables:

# Supabase
VITE_SUPABASE_URL=your_supabase_url
VITE_SUPABASE_ANON_KEY=your_supabase_key

# Base Chain
PRIVATE_KEY=your_private_key
BASE_RPC_URL=https://mainnet.base.org
ETHERSCAN_API_KEY=your_etherscan_key

# Auth0
VITE_AUTH0_DOMAIN=your_auth0_domain
VITE_AUTH0_CLIENT_ID=your_auth0_client_id
VITE_AUTH0_CLIENT_SECRET=your_auth0_client_secret
VITE_AUTH0_AUDIENCE=your_auth0_audience

# Strava (via Auth0)
VITE_STRAVA_CLIENT_ID=your_strava_client_id
VITE_STRAVA_CLIENT_SECRET=your_strava_client_secret
VITE_STRAVA_REDIRECT_URI=your_redirect_uri

Technology Stack

Frontend

Backend

Smart Contracts

Project Structure

flowstake/
├── contracts/                # Smart contracts
│   ├── FlowstakeChallenge.sol
│   └── FSTCrowdsale.sol
├── src/
│   ├── components/          # React components
│   │   ├── auth/           # Authentication components
│   │   ├── auth0/          # Auth0 specific components
│   │   ├── presale/        # Presale components
│   │   └── profile/        # Profile components
│   ├── config/             # Configuration files
│   │   └── auth0/          # Auth0 rules and settings
│   ├── hooks/              # Custom React hooks
│   ├── lib/                # Utility functions
│   │   ├── auth0/          # Auth0 utilities
│   │   ├── supabase/       # Supabase client & helpers
│   │   └── web3/           # Web3 utilities
│   ├── pages/              # Route components
│   ├── providers/          # Context providers
│   ├── stores/             # State management
│   └── types/              # TypeScript types
├── api/                    # Backend API
│   ├── routes/            # API routes
│   ├── middleware/        # Express middleware
│   └── services/          # Business logic
└── prisma/                # Database schema

Smart Contracts

FST Token

Presale Contract

Auth0 Integration

See Auth0 Documentation for detailed setup and configuration.

Key Features

Rules System

  1. Strava Connection
  2. Activity Sync
  3. Token Refresh

Development

Prerequisites

Running Locally

  1. Install dependencies:
npm install
  1. Configure environment:
cp .env.example .env
# Update .env with your credentials
  1. Start development server:
npm run dev

Testing

# Run tests
npm test

# Run tests with coverage
npm run test:coverage

Deployment

  1. Build the application:
npm run build
  1. Deploy to production:
npm run deploy:prod

Security

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

Connect With Us

License

This project is licensed under the MIT License - see the LICENSE file for details.

Pinned Loading

  1. smart-contract-best-practices smart-contract-best-practices Public

    Forked from ConsenSysDiligence/smart-contract-best-practices

    A guide to smart contract security best practices

    HTML

  2. photo-attestation photo-attestation Public

    Photographic attestation with digital signatures for validation

    Python

  3. hashed-timelock-contract-ethereum hashed-timelock-contract-ethereum Public

    Forked from chatch/hashed-timelock-contract-ethereum

    Hashed Timelock Contracts for ETH, ERC20 and ERC721 on Ethereum

    JavaScript

  4. ProofofActivity ProofofActivity Public

    Proof of Activity as a Stake

Repositories

Showing 10 of 70 repositories View all repositories

People

This organization has no public members. You must be a member to see who’s a part of this organization.

Top languages

Loading…

Uh oh!

There was an error while loading. Please reload this page.

Most used topics

Loading…

Uh oh!

There was an error while loading. Please reload this page.

Developer Program Member