This README pertains to the frontend of the piratepx app, which is a single-page app built with Vue.js and Tailwind CSS.
See the README in the root of the repository for details on the backend and setting up the full app for development.
Vite is used to develop and build the app. See their docs for specifics not covered here.
The only prerequisite is a compatible version of Node.js
(see engines.node in package.json).
nvm is the recommended installation method:
$ nvm installInstall dependencies with npm:
$ npm installStart the development server:
$ npm run devPrettier is setup to enforce a consistent code style. It's highly recommended to add an integration to your editor that automatically formats on save.
ESLint is setup with the "recommended" rules to enforce a level of code quality. It's also highly recommended to add an integration to your editor that automatically formats on save.
To run via the command line:
$ npm run lintThe frontend is built and released with the backend for convenience. See the README in the root of the repository for further details.
The production-optimized single-page app can be built by running:
$ npm run buildThis creates a dist directory with the files.