You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: examples/nextjs/README.md
+21-8Lines changed: 21 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,17 +20,30 @@ You can start editing the page by modifying `app/page.tsx`. The page auto-update
20
20
21
21
This project uses [`next/font`](https://nextjs.org/docs/app/building-your-application/optimizing/fonts) to automatically optimize and load [Geist](https://vercel.com/font), a new font family for Vercel.
22
22
23
-
## Learn More
23
+
#Install Restack Web UI
24
24
25
-
To learn more about Next.js, take a look at the following resources:
25
+
To install the Restack Web UI, you can use Docker.
26
+
```
27
+
docker run -d --pull always --name studio -p 5233:5233 -p 6233:6233 -p 7233:7233 ghcr.io/restackio/restack:main
28
+
```
29
+
# Schedule Restack workflow from NextJS frontend
30
+
31
+
The example is a NextJS application with front and backend. You can schedule the workflow example from the user interface.
32
+
33
+

34
+
35
+
When the client successfully schedules the workflow, you can see the started workflow in the Restack Web UI. You should see the following screen:
36
+
37
+

38
+
39
+
Now you can add a backend to the example. In other examples, you can see how to ideally structure the backend app with workflows, functions and services.
40
+
41
+
## Deploy on Restack
26
42
27
-
-[Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
28
-
-[Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
43
+
To deploy this Next.js application on Restack, you can use the provided `restack_up.mjs` script. This script utilizes the Restack Cloud SDK to define and deploy your application stack. It sets up the necessary environment variables and configures the Next.js application for deployment.
29
44
30
-
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js) - your feedback and contributions are welcome!
45
+
To get started, ensure you have the required Restack Cloud credentials and environment variables set up. Then, run the script to initiate the deployment process.
31
46
32
-
## Deploy on Vercel
47
+
For more detailed information on deploying your repository to Restack, refer to the [Restack Cloud deployment documentation](https://docs.restack.io/restack-cloud/deployrepo).
33
48
34
-
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
35
49
36
-
Check out our [Next.js deployment documentation](https://nextjs.org/docs/app/building-your-application/deploying) for more details.
0 commit comments