Closed MartinSStewart closed 3 years ago
I think this is a good idea.
In the Elm 0.18 version of this, the demo examples were duplicated in the main repo and also in a standalone repo. This is because the tests actually run and verify the demos.
I never bothered to reproduce the standalone repo since I did not want to duplicate the demos without a reason.
But I think it would be good to:
Put the demos in a standalone repo that folk can just npm install && npm start
on, and be confident of getting the demo live.
Put a link to the standalone repo at the top of the REAME.md
Also having stand alone examples means we don't need to second guess as much if any bugs I'm running into are caused by elm-serverless or just me breaking stuff when personally making the examples stand alone.
The demos have been copied into a new repo:
https://github.com/the-sett/elm-serverless-demo
Getting them running on localhost should be as simple as:
npm install
npm start
Re-opening as I forgot to add information on where to find the demos to the readme.
Linked in the docs.
The demo folder currently relies on NPM packages in the root folder. It's difficult to figure out which packages are necessary, which are nice to have, and which are only for internal use.
Additionally, I'm unable to get the examples to work outside of this repo without also including
src
andsrc-bridge
.src
is needed because theelm-serverless
package uses an old version ofelm/http
which conflicts with my project.src-bridge
is needed because when I try to run the demos after installing the NPM package I get an error message thatelm-serverless
can't be found.This is probably me screwing up something with NPM but it would better if the demo examples were already configured to use the NPM package rather than the local files. Also, while it isn't as big of an issue, it would be better if the demo used the
elm-serverless
elm package rather than the local files for it.