rsnext/examples/with-algolia-react-instantsearch
Max Proske 994089fcc2
Improve with-algolia-react-instantsearch example and convert to TypeScript (#42617)
Converted to TypeScript to match Contribution docs, and updated/simplified the example.

- Replaced stylesheets in Head component with imported styles
- Removed `style-loader`, `css-loader`, `cross-env`, `prop-types` packages
- Removed custom webpack config

## Documentation / Examples

- [X] Make sure the linting passes by running `pnpm build && pnpm lint`
- [X] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
2022-11-14 12:30:57 +00:00
..
components Improve with-algolia-react-instantsearch example and convert to TypeScript (#42617) 2022-11-14 12:30:57 +00:00
pages Improve with-algolia-react-instantsearch example and convert to TypeScript (#42617) 2022-11-14 12:30:57 +00:00
styles Improve with-algolia-react-instantsearch example and convert to TypeScript (#42617) 2022-11-14 12:30:57 +00:00
utils Improve with-algolia-react-instantsearch example and convert to TypeScript (#42617) 2022-11-14 12:30:57 +00:00
.gitignore Update default gitignore templates (#39051) 2022-07-26 20:08:40 -05:00
package.json Improve with-algolia-react-instantsearch example and convert to TypeScript (#42617) 2022-11-14 12:30:57 +00:00
README.md docs(examples): improve DX while copying command to create new project (#38410) 2022-07-26 21:57:48 -05:00
tsconfig.json Improve with-algolia-react-instantsearch example and convert to TypeScript (#42617) 2022-11-14 12:30:57 +00:00

With Algolia React InstantSearch example

The goal of this example is to illustrate how you can use Algolia React InstantSearch to perform your search in an application developed with Next.js. It also illustrates how you can keep in sync the Url with the search.

How to use

Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:

npx create-next-app --example with-algolia-react-instantsearch with-algolia-react-instantsearch-app
yarn create next-app --example with-algolia-react-instantsearch with-algolia-react-instantsearch-app
pnpm create next-app --example with-algolia-react-instantsearch with-algolia-react-instantsearch-app

To set up Algolia:

Deploy it to the cloud with Vercel (Documentation).