From e4e0996aee0a4b1d010a93991a255d2b4a75ebbc Mon Sep 17 00:00:00 2001 From: pimlie Date: Mon, 11 Mar 2019 10:43:05 +0100 Subject: [PATCH] chore: add README to examples --- examples/README.md | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 examples/README.md diff --git a/examples/README.md b/examples/README.md new file mode 100644 index 0000000..589668b --- /dev/null +++ b/examples/README.md @@ -0,0 +1,42 @@ +# Vue Meta Examples + +## Prepare examples + +To prepare the examples to run locally, please follow these steps: + +```bash +git clone https://github.com/nuxt/vue-meta +cd examples +yarn install +``` + +## Run the examples + +When the examples are installed locally, start the example server as follows + +```js +yarn start +// or +HOST=0.0.0.0 PORT=8080 yarn start +``` +and browse to `http://localhost:3000` or whatever you changed the host and port to + +### SSR Example + +The server side rendering example is available on the cli only, to run the SSR example just run + +```bash +yarn ssr +``` + +## Developing + +If you would like to use the examples while developing or debugging `vue-meta` features or issues, please do as follows + +```js +git clone https://github.com/nuxt/vue-meta +yarn install +cd examples +yarn install +yarn dev +```