A monorepo containing a Next.js Range Component application
- Node.js 18+ and npm
- Git
git clone https://github.com/angel-rosmend/range-component.gitcd input-rangenpm run install**Option 1: Run App **
npm run devThis will start:
- Next.js app on http://localhost:8080
npm testnpm run dev- Run both apps concurrentlynpm run build- Build the frontend for productionnpm test- Run frontend testsnpm run install- Install dependencies for all appsnpm run clean- Remove all node_modules and build artifacts
This project uses mockable.io for mocking API responses. Mockable.io is a service that allows you to create fake HTTP endpoints without writing a backend server. The Range component fetches data from mocked endpoints to simulate loading range configuration (normal vs fixed mode) with proper error handling and loading states.
Available mock endpoints:
GET http://localhost:8080/api/range?mode=normal- Normal range dataGET http://localhost:8080/api/range?mode=fixed- Fixed range values
MIT