Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spa-example #20

Merged
merged 1 commit into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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