58 lines
645 B
Markdown
58 lines
645 B
Markdown
# Queue North Website — Script Reference
|
|
|
|
Run these from the project root.
|
|
|
|
## Install
|
|
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
## Development
|
|
|
|
Start frontend and backend together:
|
|
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
Frontend runs through Vite. Backend runs through Express.
|
|
|
|
## Build
|
|
|
|
```bash
|
|
npm run build
|
|
```
|
|
|
|
Creates the production frontend build in `dist/`.
|
|
|
|
## Preview Frontend Build
|
|
|
|
```bash
|
|
npm run preview
|
|
```
|
|
|
|
## Start Backend Only
|
|
|
|
```bash
|
|
npm start
|
|
```
|
|
|
|
Equivalent compatibility script:
|
|
|
|
```bash
|
|
npm run server
|
|
```
|
|
|
|
## Health Check
|
|
|
|
```bash
|
|
curl http://localhost:3001/api/health
|
|
```
|
|
|
|
Expected response shape:
|
|
|
|
```json
|
|
{"status":"ok","timestamp":"..."}
|
|
```
|