This example contains a reference implementation of
@markprompt/react
with
Next.js, and featuring Algolia docs search.
Markprompt.JS.mp4
Create a .env.local
file at the root of the project, and add the following:
NEXT_PUBLIC_MARKPROMPT_PROJECT_KEY=<MARKPROMPT_PROJECT_KEY>
NEXT_PUBLIC_ALGOLIA_API_KEY=<ALGOLIA_API_KEY>
NEXT_PUBLIC_ALGOLIA_APP_ID=<ALGOLIA_APP_ID>
NEXT_PUBLIC_ALGOLIA_INDEX_NAME=<ALGOLIA_INDEX_NAME>
Install dependencies and start the local dev server:
npm install
npm run dev
Open http://localhost:3000 and see the result.
To use the Markprompt platform as is, please refer to the Markprompt documentation.
This library is created by the team behind Markprompt (@markprompt).