This is a test repository for the deployment system with backend integration.
- ✅ Connect to NestJS backend API
- ✅ Health check endpoint
- ✅ Full CRUD operations for Users
- ✅ Configurable backend URL
- ✅ Real-time connection status
npm installCreate a .env file in the root directory:
REACT_APP_API_URL=http://localhost:3001You can also configure the backend URL directly in the UI using the input field at the top of the page.
# Development
npm start
# Production build
npm run buildThe app will run on http://localhost:3000 by default.
This frontend connects to the NestJS backend. Make sure the backend is running:
- Navigate to
test-nestjs-backend/postgres-app(or mysql-app, mongo-app) - Run
npm install && npm run start:dev - Backend will run on
http://localhost:3001(or port specified in backend config)
GET /health- Health checkGET /users- Get all usersGET /users/:id- Get user by IDPOST /users- Create new userPATCH /users/:id- Update userDELETE /users/:id- Delete user
- Language: JavaScript
- Build Command:
npm install && npm run build - Start Command:
npm start(development) or useservefor production - Publish Directory:
build - Exposed Port: 3000 (default)
- Use this repo to test frontend deployment
- Set
publishDirtobuildin the deployment config - The build will create static files in the
builddirectory - Use
serveto serve the static files in production - Make sure backend URL is accessible from the deployed frontend