Skip to content

This project aims to generate an NFT for each segment a Strava user runs through.

Notifications You must be signed in to change notification settings

alainncls/strava-segments-to-nfts-dapp

Repository files navigation

Segments to NFTs

Build Coverage Maintainability Rating

Decentralized application aiming to generate NFTs for Strava activities and segments.

This project started as a centralized application, with a backend and a webapp, now both deprecated.

How to use the NFT contract

1. Go to /blockchain

cd blockchain

2. Add your secret identifiers

  1. Copy the .env.example file to a .env file
  2. Fill it with your Infura identifiers for chain access
  3. Add your private key to deploy the contract
  4. Add your Lineascan and/or Etherscan API key(s) to verify the contract on Lineascan/Etherscan

3. Install dependencies

pnpm install

4. Compile the contract

pnpm run compile

5. Deploy the contract

pnpm run deploy:linea-goerli

How to launch the web app

1. Go to /www

cd www

2. Add your secret identifiers

  1. Copy the .env.example file to a .env.local file
  2. Fill it with your Strava application identifiers
  3. Fill it with your Pinata identifiers for IPFS access

3. Install dependencies

pnpm install

4. Run the app

pnpm run start

How to test

Run unit tests with watch

pnpm run test

Run unit tests with coverage

pnpm run test:coverage

Technical notes/ideas

This project was originally bootstrapped with Create React App.

It is now relying on Vite for the development tooling and Vitest for the tests.

About

This project aims to generate an NFT for each segment a Strava user runs through.

Topics

Resources

Stars

Watchers

Forks