Skip to content

Instantly share code, notes, and snippets.

@ThePendulum
Last active May 9, 2019 01:49
Show Gist options
  • Save ThePendulum/60ca857b9e0dcc171874569f00428b44 to your computer and use it in GitHub Desktop.
Save ThePendulum/60ca857b9e0dcc171874569f00428b44 to your computer and use it in GitHub Desktop.

Luwt

Website for the Luwt café in Leeuwarden.

Hosting

The root directory of this website is dist/, which is the directory your web server must point to.

Making changes

To make changes, modify the .vue files in pages/, layouts/ (reused templates) or components/ (small page elements). Photos and other images can be added to the static/img/ directory.

The Luwt website uses Nuxt.js as a static site generator for Vue, which must be run to build and publish the changes.

To run Nuxt:

  • Install Node.js v8.16.0 or later (for Linux, use nvm; for Windows, use the installer).
  • Install the necessary dependencies by running npm install inside the Luwt directory.
  • After making the changes, rebuild the Luwt website by running npm run generate.

If you are making multiple changes, you can utilize npm run dev. This will run a temporary web server and give you an address at which you can view your updates live. This server is not suitable for production and should not be used as permanent hosting. You must still run npm run generate to publish the changes to the main website.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment