The downloads page for the Sponge project, using System Of A Download as the data source for the download lists.
SpongeDownloads is a single-page application (SPA) built using Vue.js, currently version 2.6.
To set up your workspace, ensure you have the following installed:
Clone this repository, navigate to the root directory in your favourite shell and run npm i
.
SpongeDownloads is built with vue-cli 4. To build the production page to the dist
folder, run:
npm run build
This will produce a production version of SpongeDownloads, which by default, will point at the SOAD staging server, assumes a public path of /downloads
and generates a file called index.html
as the entry point to the application. You can set the following environment variables in your shell prior to building to change these values:
VUE_APP_PUBLIC_PATH
: set the public pathVUE_APP_API_URL
: set the API URL to point toVUE_APP_INDEX_PATH
: set the name of the HTML page that is generated
To start the development server at http://localhost:8080/downloads, run:
npm run serve
To check the code for errors using ESLint, run:
npm run lint