mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
Bumps the npm_and_yarn group with 1 update in the /SharpbinV3.Client directory: [devalue](https://github.com/sveltejs/devalue). Updates `devalue` from 5.8.1 to 5.9.4 - [Release notes](https://github.com/sveltejs/devalue/releases) - [Changelog](https://github.com/sveltejs/devalue/blob/main/CHANGELOG.md) - [Commits](https://github.com/sveltejs/devalue/compare/v5.8.1...v5.9.4) --- updated-dependencies: - dependency-name: devalue dependency-version: 5.9.4 dependency-type: indirect dependency-group: npm_and_yarn ... Signed-off-by: dependabot[bot] <support@github.com>
SharpbinV3 Client
This is the SvelteKit frontend for SharpbinV3.
Development Setup
Prerequisites
- Node.js (v20 or newer recommended)
- npm
Installation
Install the project dependencies:
npm install
Environment Configuration
The frontend requires an environment variable to point to the backend API. Create a .env file in this directory or set the variable in your environment:
VITE_API_URL: The URL of the backend API (e.g.,http://localhost:8080).VITE_ALLOWED_HOSTS: A comma separated list of allowed hosts (e.g.,localhost,sharpbin.whoswhip.dev)VIEW_INTERNAL_API_KEY: Enforces views to be counted/recorded only by the frontend, if set it needs to be the same for both backend and frontend.
Running in Development
Start the development server with Hot Module Replacement (HMR):
npm run dev
The frontend will be available at http://localhost:5173.
Script Reference
npm run dev: Start the Vite development server.npm run build: Create a production build of the frontend.npm run preview: Locally preview the production build.npm run check: Run type checking with svelte-check.npm run lint: Run ESLint and Prettier checks.npm run format: Format the codebase with Prettier.