A monorepo containing a Next.js Range Component application and a mock API server.
/frontend- Next.js application with Range component/mock-server- Express mock API server
- Node.js 18+ and npm
- Git
git clone https://github.com/angel-rosmend/range-component.gitcd range-componentnpm run install:allOption 1: Run both apps together (Recommended)
npm run devThis will start:
- Mock server on http://localhost:4000
- Next.js app on http://localhost:8080
Option 2: Run apps separately
npm run dev:servernpm run dev:frontendnpm test
```bash
## 📚 Documentation
- [Frontend Documentation](./apps/frontend/README.md)
## 🛠️ Available Scripts
- `npm run dev` - Run both apps concurrently
- `npm run dev:frontend` - Run only the Next.js app
- `npm run dev:server` - Run only the mock server
- `npm run build` - Build the frontend for production
- `npm test` - Run frontend tests
- `npm run install:all` - Install dependencies for all apps
- `npm run clean` - Remove all node_modules and build artifacts
## 🌐 API Endpoints
The mock server provides:
- `GET http://localhost:4000/range?mode=normal` - Normal range data
- `GET http://localhost:4000/range?mode=fixed` - Fixed range values
## 📝 License
MIT