https://github.com/restatedev/nextjs-example
https://github.com/restatedev/nextjs-example
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/restatedev/nextjs-example
- Owner: restatedev
- Created: 2024-11-25T15:26:23.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-16T07:55:15.000Z (over 1 year ago)
- Last Synced: 2025-07-03T10:11:46.502Z (about 1 year ago)
- Language: TypeScript
- Size: 310 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a [Next.js](https://nextjs.org) project bootstrapped with [`create-next-app`](https://nextjs.org/docs/app/api-reference/cli/create-next-app).
## Getting Started
```bash
## Run the app
npm run dev
## Check you can see the UI in http://localhost:3000
## Register Restate services, in app/restate/[[...services]]/route.ts
restate deployments register http://localhost:3000/restate/v1 --use-http1.1
## Test the service
curl localhost:8080/Greeter/greet -H 'content-type: application/json' -d '"NextJS!"'
```