Image for post
Image for post
Photo by Priscilla Du Preez on Unsplash

Local First Entwicklung im Frontend

Einleitung

Motivation

Umsetzung

Grundlegendes zu JSON

Image for post
Image for post
Image for post
Image for post

Backend-Server

JSON-Server

npm install -g json-server
{"posts": [
{ "id": 1, "title": "json-server", "author": "typicode" }
],
"comments": [
{ "id": 1, "body": "some comment", "postId": 1 }
]}
json-server --watch db.json
json-server --watch db.json –port 3004
json-server --watch db.json –port 3004 --routes routes.json

Middlewares

Express.js

Frontend einbinden

Der Standard: Storybook

Webpack-Dev-Server

Simple HTTP Server

Umgebungen definieren

Überblick

Image for post
Image for post

Fazit

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store