Skip to content

Commit

Permalink
[misc] micro fe notes, gitignore ds_store
Browse files Browse the repository at this point in the history
  • Loading branch information
bhongy committed Jan 15, 2022
1 parent 1ab1c8d commit 681f7cb
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
31 changes: 31 additions & 0 deletions micro-frontend-notes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# micro-frontend design notes

```sh
/_/service/{svc}/{feature}
/_/service/{svc}/{feature}/manifest.json
```

```json
// /_/service/{svc}/{feature}/manifest.json
{
"name": "feature",
"version": "1fc3...350f",
"content": "/path/to/content", // HTML
"css": {
"asset.id": "/{svc}/static/4833a.css"
},
"js": {
"asset.id": "/{svc}/static/a346c.js"
}
}
```

```sh
curl "${svc}/path/to/content"

HTTP/1.1 200 OK
Content-Type: text/html
Upstream-Version: 1fc3...350f

<html>...
```

0 comments on commit 681f7cb

Please sign in to comment.