-
Notifications
You must be signed in to change notification settings - Fork 409
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move Next.js Quickstart into an env-switcher (#8350)
- Loading branch information
1 parent
728dcb5
commit e674b03
Showing
16 changed files
with
129 additions
and
54 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. edb:env-switcher:: | ||
========== | ||
Connecting | ||
========== | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:hidden: | ||
|
||
nextjs |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
.. edb:env-switcher:: | ||
=========== | ||
Inheritance | ||
=========== | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:hidden: | ||
|
||
nextjs | ||
|
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
.. edb:env-switcher:: | ||
======== | ||
Modeling | ||
======== | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:hidden: | ||
|
||
nextjs | ||
|
||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. edb:env-switcher:: | ||
======== | ||
Overview | ||
======== | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:hidden: | ||
|
||
nextjs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
.. _ref_quickstart: | ||
|
||
========== | ||
Quickstart | ||
========== | ||
|
||
Welcome to the quickstart tutorial! In this tutorial, you will update a simple Next.js application to use |Gel| as your data layer. The application will let users build and manage their own study decks, with each flashcard featuring customizable text on both sides - making it perfect for studying, memorization practice, or creating educational games. | ||
|
||
Don't worry if you're new to |Gel| - you will be up and running with a working Next.js application and a local |Gel| database in just about **5 minutes**. From there, you will replace the static mock data with a |Gel| powered data layer in roughly 30-45 minutes. | ||
|
||
By the end of this tutorial, you will be comfortable with: | ||
|
||
* Creating and updating a database schema | ||
* Running migrations to evolve your data | ||
* Writing EdgeQL queries in text and via a TypeScript query builder | ||
* Building an app backed by |Gel| | ||
|
||
Features of the flashcards app | ||
------------------------------ | ||
|
||
* Create, edit, and delete decks | ||
* Add/remove cards with front/back content | ||
* Simple Next.js + Tailwind UI | ||
* Clean, type-safe schema with |Gel| | ||
|
||
Requirements | ||
------------ | ||
|
||
Before you start, you need: | ||
|
||
* Basic familiarity with TypeScript, Next.js, and React | ||
* Node.js 20+ on a Unix-like OS (Linux, macOS, or WSL) | ||
* A code editor you love | ||
|
||
Why |Gel| for Next.js? | ||
---------------------- | ||
|
||
* **Type Safety**: Catch data errors before runtime | ||
* **Rich Modeling**: Use object types and links to model relations | ||
* **Modern Tooling**: TypeScript-friendly schemas and migrations | ||
* **Performance**: Efficient queries for complex data | ||
* **Developer Experience**: An intuitive query language (EdgeQL) | ||
|
||
Need Help? | ||
---------- | ||
|
||
If you run into issues while following this tutorial: | ||
|
||
* Check the `Gel documentation <https://docs.geldata.com>`_ | ||
* Visit our `community Discord <https://discord.gg/gel>`_ | ||
* File an issue on `GitHub <https://github.com/geldata/gel>`_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
.. edb:env-switcher:: | ||
===== | ||
Setup | ||
===== | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:hidden: | ||
|
||
nextjs |
File renamed without changes.
File renamed without changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
.. edb:env-switcher:: | ||
======= | ||
Working | ||
======= | ||
|
||
.. toctree:: | ||
:maxdepth: 3 | ||
:hidden: | ||
|
||
nextjs | ||
|
||
|
||
|
File renamed without changes.