mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-05 18:48:41 +00:00
docs: correct dev docs
This commit is contained in:
@@ -19,7 +19,7 @@ npm install
|
||||
|
||||
### Environment Configuration
|
||||
|
||||
The application requires an environment variable to point to the backend API. Create a `.env` file in this directory or set the variable in your environment:
|
||||
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`)
|
||||
@@ -33,21 +33,13 @@ Start the development server with Hot Module Replacement (HMR):
|
||||
npm run dev
|
||||
```
|
||||
|
||||
The application will be available at http://localhost:5173.
|
||||
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 application.
|
||||
- `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.
|
||||
|
||||
## Tech Stack
|
||||
|
||||
- Svelte 5 with SvelteKit.
|
||||
- Tailwind CSS for styling.
|
||||
- Lucide Svelte for icons.
|
||||
- Highlight.js for syntax highlighting.
|
||||
- TypeScript for type safety.
|
||||
- `npm run format`: Format the codebase with Prettier.
|
||||
Reference in New Issue
Block a user