Skip to content

Commit

Permalink
adds spa-example (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewMacmurray authored Oct 10, 2023
1 parent 6790969 commit 895c82c
Show file tree
Hide file tree
Showing 15 changed files with 2,093 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,5 @@
- [Fruits Pipeline Worker](./fruits-pipeline-worker/) A fruit picking worker process that talks to AWS services.
- [Many Requests](./many-requests/) Fires of a sequence of concurrent http requests with error recovery steps.
- [Dom Operations](./dom-operations/) Interactive examples of `Browser.Dom` operations.
- [Localstorage Fruit Trees](localstorage-fruit-trees/) Add fruits to a basket using localstorage.
- [Localstorage Fruit Trees](./localstorage-fruit-trees/) Add fruits to a basket using localstorage.
- [Spa Example](./spa-example/) Example usage in an elm-land single page application.
7 changes: 7 additions & 0 deletions examples/spa-example/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/dist
/.elm-land
/.env
/elm-stuff
/node_modules
.DS_Store
*.pem
10 changes: 10 additions & 0 deletions examples/spa-example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# spa-example

> Built with [Elm Land](https://elm.land) 🌈
## Local development

```bash
# Requires Node.js v18+ (https://nodejs.org)
npm start
```
26 changes: 26 additions & 0 deletions examples/spa-example/elm-land.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"app": {
"elm": {
"development": { "debugger": true },
"production": { "debugger": false }
},
"env": [],
"html": {
"attributes": {
"html": { "lang": "en" },
"head": {}
},
"title": "Elm Land",
"meta": [
{ "charset": "UTF-8" },
{ "http-equiv": "X-UA-Compatible", "content": "IE=edge" },
{ "name": "viewport", "content": "width=device-width, initial-scale=1.0" }
],
"link": [],
"script": []
},
"router": {
"useHashRouting": false
}
}
}
27 changes: 27 additions & 0 deletions examples/spa-example/elm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"type": "application",
"source-directories": [
"src",
".elm-land/src",
"../../src"
],
"elm-version": "0.19.1",
"dependencies": {
"direct": {
"elm/browser": "1.0.2",
"elm/core": "1.0.5",
"elm/html": "1.0.0",
"elm/json": "1.1.3",
"elm/url": "1.0.0",
"mdgriffith/elm-ui": "1.1.8"
},
"indirect": {
"elm/time": "1.0.0",
"elm/virtual-dom": "1.0.3"
}
},
"test-dependencies": {
"direct": {},
"indirect": {}
}
}
Loading

0 comments on commit 895c82c

Please sign in to comment.