Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Building a production-ready front-end even if y...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
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
46
E2E tests with Cypress.io
asantos00
0
230
Mistakes I made writing React/Redux applications
asantos00
0
170
Other Decks in Programming
See All in Programming
バグを直したら useEffect が消えた
colorful12
3
780
Cloudflare is Agents
chimame
0
190
tsc.rip を支える技術 / Kyoto.なんか #8
susisu
0
4k
Dockerfile CMD for Node.js
grazie1999
0
160
楽しそうなつよつよエンジニアと目が死んでる僕/A brilliant engineer having a blast, and dead-eyed me.
3l4l5
2
270
「寝てても仕事が進む」Claude Codeで組む第二の脳
tomoyafujita2016
0
370
AI Readyの正体はデータマネジメントだ メダリオン2.0の最前線
freee
PRO
0
470
プロポーザルを書いてもらう
pvcresin
0
590
T3DD26: From RAGs to Riches
martinhelmich
0
120
源内ハンズオン概要編
hideg
0
230
AI Engineeringは、AIプロダクトだけのものか? 〜AIがソフトウェアを作る時代の新しい当たり前〜 / No AI in your product. AI Engineering in your development.
rkaga
5
560
仕様書を書く前にハーネスを作る - Agent Native開発は「探索を速く、判定を固く」
gotalab555
5
1.8k
Featured
See All Featured
We Have a Design System, Now What?
morganepeng
55
8.3k
sira's awesome portfolio website redesign presentation
elsirapls
0
360
SEOcharity - Dark patterns in SEO and UX: How to avoid them and build a more ethical web
sarafernandez
0
260
Lightning Talk: Beautiful Slides for Beginners
inesmontani
PRO
2
660
Improving Core Web Vitals using Speculation Rules API
sergeychernyshev
21
1.6k
The Power of CSS Pseudo Elements
geoffreycrofte
82
6.5k
The innovator’s Mindset - Leading Through an Era of Exponential Change - McGill University 2025
jdejongh
PRO
1
320
Unlocking the hidden potential of vector embeddings in international SEO
frankvandijk
0
910
Conquering PDFs: document understanding beyond plain text
inesmontani
PRO
4
3k
30 Presentation Tips
portentint
PRO
1
380
AI: The stuff that nobody shows you
jnunemaker
PRO
9
950
Making Projects Easy
brettharned
120
6.7k
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