This app was created as part of my 10K giveaway on Twitter.
The rules for the competition is:
Feel free to use it in a similar competition.
npm run generate
Generate some mock-data for the wheel.
The mock-data will be found in src/mock/users.json
.
Go to node/generate.ts
to configure the generation.
npm run fetch
Fetch the participants from Twitter. This command will go through each of all your followers, and check if they both liked and retweeted.
⚠️ This can potentially take long time, depending on how many followers you have. For me, it took almost 3 days to go through them all.
The data will be found in src/data/users.json
.
Go to node/fetchParticipants.ts
to configure the twitter client.
In the App.tsx
file, you can choose to import either the mock/users.json
or data/users.json
.
Start the wheel application with
npm start