This project is a showcase to a real world autocomplete input text example
Make sure you have the following installed:
- Clone the repository:
git clone https://github.com/basic-steve/autocomplete-example.git
cd autocomplete-example- Install dependencies:
pnpm iTo start the development server, run:
pnpm devThis will start the Vite development server and you can view the application at http://localhost:5173 or first available port on your system.
To build the application for production, run:
pnpm buildThe output will be in the dist directory.
To preview the production build locally, run:
pnpm preview- React: A JavaScript library for building user interfaces.
- TypeScript: A typed superset of JavaScript that compiles to plain JavaScript.
- Vite: A fast build tool and development server.
- CSS modules: Chosen for their flexibility, providing a modular and scoped approach to styling
- Data validation: Checking data integrity to make sure api data resembles typing and avoiding stability issues.