This script automates the process of building, starting, and managing both the frontend and backend services.
Run the script from the project root directory:
./manage-app.sh [build|start|stop|restart|status]build- Build the frontend React applicationstart- Start both frontend and backend servicesstop- Stop both frontend and backend servicesrestart- Restart both servicesstatus- Check the status of running services
# Build the frontend application
./manage-app.sh build
# Start both services
./manage-app.sh start
# Check status
./manage-app.sh status
# Stop both services
./manage-app.sh stop
# Restart everything
./manage-app.sh restart- Frontend: http://localhost:3000
- Backend: http://localhost:3001
- Backend API Health Check: http://localhost:3001/api/health
- Build: Builds the React application using
npm run build - Start:
- Starts the Node.js backend server on port 3001
- Starts the frontend application using
serve -s buildon port 3000
- Stop: Gracefully stops both services
- Status: Shows the current status of both services
To stop the servers, press Ctrl+C or run ./manage-app.sh stop.