Create a Connected Website
Tutorial: Build 'Pixel Pet Designer' & Connect with LearnCard GameFlow
Our Project: Pixel Pet Designer
What you'll learn by doing:
Prerequisites:
Part 1: Setting Up the "Pixel Pet Designer" Frontend
Step 1.1: Project Setup
Step 1.2: index.html - The Basic Structure
index.html - The Basic StructureStep 1.3: style.css - Basic Styling
style.css - Basic StylingStep 1.4: app.js - Basic Frontend Logic (Pixel Grid)
app.js - Basic Frontend Logic (Pixel Grid)Part 2: Setting Up the Backend (Issuer & GameFlow Contract)
Step 2.1: Install Dependencies
Step 2.2: Backend Setup (server.js)
server.js)Part 3: Connecting LearnCard - Frontend
Step 3.1: Update app.js to Fetch Consent URL
app.js to Fetch Consent URLPart 4: Connecting LearnCard - Backend Callback
Step 4.1: Implement the Callback Endpoint in server.js
server.jsStep 4.2: Frontend - Handle Successful Connection (app.js)
app.js)Part 5: Designing & Submitting a Pet (Frontend)
Step 5.1: Update app.js for Pet Submission
app.js for Pet SubmissionPart 6: Issuing the Pet Badge (Backend)
Step 6.1: Create a Boost for "Pixel Pet Creation" Badges (One-time Setup)
Step 6.2: Backend - Create the /api/issue-pet-badge Endpoint
/api/issue-pet-badge EndpointSummary & Next Steps
Last updated
Was this helpful?