Giter Site home page Giter Site logo

wceu2023's Introduction

Building Interactive Blocks workshop

Welcome to the GitHub repository of the WordCamp Europe 2023 workshop, Building Interactive blocks by Luis Herranz.

In this workshop, we learned how to create interactive blocks using the Interactivity API.



⚠️ Important note: At the time of the workshop, the version of the Interactivity API was different and still wasn't included in WordPress Core. The workshop recording still refers to the old code

The code of the main branch has been updated to the latest version of the Interactivity API so you can run it using the latest version of WordPress.

If you want, you can still view the old code on the step branches: old code

Preparation steps πŸ§‘β€πŸ³

  1. Download Node

    Not necessary if you have Node >= 18.

  2. Clone this repository, or download it

    Cloning is recommended, but downloading is also fine.

  3. Run npm install

    This may take a while, so do it as soon as you get the repository.

That's it! You don't need to install anything or do anything else just yet.

Time to code! πŸ§‘β€πŸ’»

Hey, wait until it's time to code… 🀫


Is time to code? Ok, let's go!

Start the project πŸš€

  1. Run npm start
  2. Go to localhost:8881

That's it πŸ’₯

How to follow the workshop 🧐

The workshop is divided in steps.

You can…

  1. Write all the code

    Not recommended unless you are already familiar with the Interactivity API.

  2. Copy and paste the code snippets of each step from here

    Only recommended if you are familiar with block development.

  3. Use git to move through the steps

    The easiest one! Good to follow along even if you're not familiar with block development.

    To move through the steps, you can use this command:

    • git checkout step0
    • git checkout step1
    • ...

Important: you can see the changes of each step here.

Get involved! 🦸

Got questions or feedback about it? We'd love to hear from you in the GitHub Discussions.

Are you interested on contributing with code or documentation? Come to the repository!

You can also find me in Twitter, GitHub, or Slack (always as @luisherranz).

wceu2023's People

Contributors

luisherranz avatar verytwisty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.