- Step 1: Sign up for Graphlit 🆓
- Step 2: Create a project
- Node.js 18.17 and above
Clone the repository:
git clone git@github.com:graphlit/graphlit-samples.git
cd nextjs/chatInstall packages:
npm iFirst, copy the .env.example file to .env and fill in the required environment variables:
GRAPHLIT_ORGANIZATION_IDGRAPHLIT_ENVIRONMENT_IDGRAPHLIT_JWT_SECRET
cp .env.example .envRun the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.
