- Step 1: Sign up for Graphlit 🆓
- Step 2: Create a project
- Node.js 18.17 and above
Clone the repository:
git clone [email protected]:graphlit/graphlit-samples.git
cd nextjs/chat
Install packages:
npm i
First, copy the .env.example
file to .env
and fill in the required environment variables:
GRAPHLIT_ORGANIZATION_ID
GRAPHLIT_ENVIRONMENT_ID
GRAPHLIT_JWT_SECRET
cp .env.example .env
Run the development server:
npm run dev
Open 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.