diff --git a/README.md b/README.md index 656bf4431f..1ef2c711b0 100644 --- a/README.md +++ b/README.md @@ -10,9 +10,11 @@ Framework for building monolithic, full-stack, serverless React apps with zero d The Blitz community is warm, safe, diverse, inclusive, and fun! LGBTQ+, women, and minorities are especially welcome. Please read our [Code of Conduct](https://github.com/blitz-js/blitz/blob/canary/CODE_OF_CONDUCT.md). -## Demo +## LIVE Demo -The initial Blitz demo app is at [examples/first-demo](https://github.com/blitz-js/blitz/blob/canary/examples/first-demo/README.md). NOTE: The API is very alpha, and will change. +The initial Blitz demo is live at [first-demo.blitzjs.com](https://first-demo.blitzjs.com/)! + +It's source code is at [examples/first-demo](https://github.com/blitz-js/blitz/blob/canary/examples/first-demo). NOTE: The API is very alpha, and will change. ## I invite you to join me — let’s build the future of web dev together. 🤝 diff --git a/examples/first-demo/README.md b/examples/first-demo/README.md index 2feebf4b76..18703bcbea 100644 --- a/examples/first-demo/README.md +++ b/examples/first-demo/README.md @@ -1,5 +1,7 @@ # First Blitz Demo +NOTE: The Blitz API is very alpha and will change! This demo is an early prototype + ## Setup - You must have postgres installed and running @@ -11,4 +13,4 @@ ## Production Deployment -WARNING: Production deployment works, but does not work correctly. There's a bug in the unreleased, canary feature Blitz uses. Will update once that's fixed. +This demo is live at [first-demo.blitzjs.com](https://first-demo.blitzjs.com/) diff --git a/examples/first-demo/package.json b/examples/first-demo/package.json index 216c348007..4027b9d8d9 100644 --- a/examples/first-demo/package.json +++ b/examples/first-demo/package.json @@ -10,7 +10,7 @@ }, "dependencies": { "@blitzjs/core": "*", - "@prisma/client": "2.0.0-preview022", + "@prisma/client": "2.0.0-alpha.836", "next": "9.2.3-canary.13", "next-transpile-modules": "3.0.2", "react": "16.12.0", @@ -19,9 +19,13 @@ }, "devDependencies": { "@fullhuman/postcss-purgecss": "2.1.0", + "@types/node": "13.7.6", "@types/react": "16.9.23", "autoprefixer": "9.7.4", - "prisma2": "2.0.0-preview022", + "prisma2": "2.0.0-alpha.833", "typescript": "3.8.2" + }, + "browser": { + "@prisma/client": false } } diff --git a/examples/first-demo/pages/index.js b/examples/first-demo/pages/index.js index 18edbbe5c5..35ecf0aa63 100644 --- a/examples/first-demo/pages/index.js +++ b/examples/first-demo/pages/index.js @@ -8,10 +8,25 @@ const Home = props => (
Notice the URL bar as you navigate
+
+ This demo is deployed on{' '}
+
+ Zeit
+
+ , as a combo of static pages and serverless functions.
+
+
+ It has no client-side data fetching or state management. All data reads & writes are
+ server-side using Prisma 2.
+
View Posts diff --git a/examples/first-demo/pages/posts/[id].tsx b/examples/first-demo/pages/posts/[id].tsx index 9ad2773251..e91c9185af 100644 --- a/examples/first-demo/pages/posts/[id].tsx +++ b/examples/first-demo/pages/posts/[id].tsx @@ -9,6 +9,12 @@ export default Page function Page({post}) { return (
diff --git a/examples/first-demo/pages/posts/[id]/edit.js b/examples/first-demo/pages/posts/[id]/edit.js index 91134e16df..df34c3faab 100644 --- a/examples/first-demo/pages/posts/[id]/edit.js +++ b/examples/first-demo/pages/posts/[id]/edit.js @@ -9,6 +9,12 @@ export default Page function Page({post}) { return (