Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Building a production-ready front-end even if y...
Search
Alexandre Santos
January 09, 2020
Programming
130
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Building a production-ready front-end even if your API does not exist
require('lx')
Alexandre Santos
January 09, 2020
More Decks by Alexandre Santos
See All by Alexandre Santos
Deno - Why should you care
asantos00
0
47
E2E tests with Cypress.io
asantos00
0
230
Mistakes I made writing React/Redux applications
asantos00
0
180
Other Decks in Programming
See All in Programming
SREの越境 / SRE Collaboration
y0hgi
2
300
dotNET_vulnclicker_intro.pdf
deka_morita
0
140
GemmaをJevのように使ってみる / Use Gemma like Jev
kishida
5
770
Vue Fes Japan の “作る側”に関わってみて
naokihaba
0
150
Agents on Rails - Rails at Scale 2026
irinanazarova
0
530
Everything will be SERVERLESS — 信じて運用した10年の経験値 / Everything Will be Serverless — Lessons Learned from 10 Years of Operational Experience
seike460
PRO
1
990
【加筆修正版】Laravel のアプリケーションをどこにデプロイするか #phpcon_ehime
akase244
0
150
HTML-in-Canvasで作る未来のWeb UI表現
clockmaker
4
4.7k
気持ちぃ〜角丸 Squircle
ryu1013
0
280
設計次第でAIコードの読む量は減らせる / designing-for-code-reading
minodriven
34
16k
sbt 2.0: takeoff
eed3si9n
0
150
AI主導のプログラミング学習アプリを作ってみた
econanringo
0
160
Featured
See All Featured
[SF Ruby Conf 2025] Rails X
palkan
3
1.4k
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.6k
New Earth Scene 8
popppiees
4
2.7k
Gemini Prompt Engineering: Practical Techniques for Tangible AI Outcomes
mfonobong
2
590
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
18k
Leo the Paperboy
mayatellez
10
2.4k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
Primal Persuasion: How to Engage the Brain for Learning That Lasts
tmiket
0
500
Paper Plane
katiecoart
PRO
4
54k
Max Prin - Stacking Signals: How International SEO Comes Together (And Falls Apart)
techseoconnect
PRO
0
490
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.3k
A designer walks into a library…
pauljervisheath
211
25k
Transcript
Alexandre Santos Production-ready front-end even if the API does not
exist 9th January 2020
Who am I? Alexandre Santos, 25 January 9th 2020 Full-stack
developer Software architecture, TDD, product
Develop an amazing user experience Against a finished and documented
API That's always stable With fully decided feature requirements Front-end
None
The goal Develop an amazing user experience
Against an almost finished & not documented API That's probably
unstable With fast changing feature requirements The Conditions
None
Problems Not finished API Unstable remote environment Fast changing requirements
Problems Front-end ahead of back-end Local environment Emulate back-end changes
locally Solutions Not finished API Unstable remote environment Fast changing requirements
Possible solution Local mocks
Advantages of local mocks Quickly develop and ship the working
front-end to a testing environment. Develop for the happy path seamlessly Payload is exactly what front-end needs
Taking a few steps back... Develop an amazing user experience
Flickering UI No loading states Possible unknown crashes No feedback
given to the user Amazing user experience?
Disadvantages of local mocks Ignoring network Only develop for the
happy path APIs can change, paths can change Loading states? Error scenarios? Feedback to the user?
Presenting Mirage JS Mirage JS is an API mocking library
that lets you build, test and share a complete working JavaScript application without having to rely on any backend services.
Started with ember.js in 2015 - ember-cli-mirage Front-end first development
Widely used (around 30k weekly) Recently extracted to a vanilla JS package A little bit of history
Demo time
Problems Front-end ahead of back-end Local environment Emulate back-end changes
locally Solutions Not finished API Unstable remote environment Fast changing requirements ✅ ✅ ✅
Future ideas Node.js support Better TypeScript typings Chaos Engineering approach
to miragejs OpenAPI miragejs generator
We’d love your help! miragejs/miragejs miragejs/website miragejs-caos miragejs-open-api [insert your
package] Join us on Discord Mirage JS
Thank you Questions? Github: asantos00 Twitter: ampsantos0