Slide 1

Slide 1 text

Raymond RUTJES - @rayrutjes Full stack engineer Building Vue InstantSearch

Slide 2

Slide 2 text

@rayrutjes About me ● Self-taught developer ● Couple of web agencies ● Freelancing ● Ran my own company > 5 years ● Happy member of Algolia

Slide 3

Slide 3 text

@rayrutjes About me ● Self-taught developer ● Couple of web agencies ● Freelancing ● Ran my own company > 5 years ● Happy member of Algolia

Slide 4

Slide 4 text

What is Vue InstantSearch?

Slide 5

Slide 5 text

@rayrutjes InstantSearch - Is the name of libraries to create search UXs on top of Algolia - A bunch of re-usable components - Focus on improving developer productivity & happiness

Slide 6

Slide 6 text

@rayrutjes InstantSearch - Is the name of libraries to create search UXs on top of Algolia - A bunch of re-usable components - Focus on improving developer productivity & happiness

Slide 7

Slide 7 text

No content

Slide 8

Slide 8 text

No content

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

@rayrutjes What we are going to talk about ● Search Store ● Provide/Inject ● Mixin ● Computed setter/getter ● Slots and Scoped slots

Slide 11

Slide 11 text

The Search Store

Slide 12

Slide 12 text

@rayrutjes The Index component ● An Index is like a table in your database ● Each row is called a record in Algolia ● Each search operation will target a single index

Slide 13

Slide 13 text

No content

Slide 14

Slide 14 text

@rayrutjes

Slide 15

Slide 15 text

Provide / Inject

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

Mixin

Slide 19

Slide 19 text

@rayrutjes What are mixins “Mixins are a flexible way to distribute reusable functionalities for Vue components. When a component uses a mixin, all options in the mixin will be “mixed” into the component’s own options.” https://vuejs.org/v2/guide/mixins.html

Slide 20

Slide 20 text

No content

Slide 21

Slide 21 text

No content

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

Computed setters/getters

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

Re-usable Components

Slide 26

Slide 26 text

Component = Behavior + UI

Slide 27

Slide 27 text

@rayrutjes Behavior ● Is the core logic of your component ● If needs to be adapted, guide users towards creating custom components ● Provide common components out of the box

Slide 28

Slide 28 text

@rayrutjes UI ● The look & feel of the component ● Always needs to be customize ● -> translations ● -> adapting look & feel to the existing styles

Slide 29

Slide 29 text

No content

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

Slots and Scoped slots

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

No content

Slide 34

Slide 34 text

No content

Slide 35

Slide 35 text

No content

Slide 36

Slide 36 text

@rayrutjes My tips regarding slots ● Incredibly simple way for users to extend your components ● Use them! ● Expose at least the variables you use in your default implementation ● Developers are sometime reluctant to create “custom components”, so slots are a friendlier alternative

Slide 37

Slide 37 text

Wrap up

Slide 38

Slide 38 text

@rayrutjes Concepts & features ● Search Store ● Provide/Inject ● The Component Mixin ● Computed setter/getter ● Slots and Scoped slots

Slide 39

Slide 39 text

@rayrutjes Links ● Vue InstantSearch project: https://community.algolia.com/vue-instantsearch/

Slide 40

Slide 40 text

@rayrutjes Links ● Vue InstantSearch project: https://community.algolia.com/vue-instantsearch/ ● Why we built Vue InstantSearch: https://blog.algolia.com/laravel-vue-js-search/

Slide 41

Slide 41 text

@rayrutjes Links ● Vue InstantSearch project: https://community.algolia.com/vue-instantsearch/ ● Why we built Vue InstantSearch: https://blog.algolia.com/laravel-vue-js-search/ ● @rayrutjes on Twitter and GitHub

Slide 42

Slide 42 text

Thank you Raymond RUTJES - @rayrutjes Full stack engineer