course_web01 / package.json
trae-bot
Prepare Hugging Face Space deployment
73746a8
{
"name": "course-subscription",
"version": "1.0.0",
"scripts": {
"install:hf": "npm --prefix frontend ci && npm --prefix backend ci",
"build:hf": "npm --prefix frontend run build && npm --prefix backend run build",
"start:hf": "sh -c \"PORT=3001 npm --prefix backend run start:prod & npm --prefix frontend run start -- -H 0.0.0.0 -p ${SPACE_PORT:-7860}\"",
"dev:frontend": "cd frontend && npm run dev",
"dev:backend": "cd backend && npm run start:dev",
"install:all": "cd frontend && npm install && cd ../backend && npm install"
}
}