main
— the completed version of the appincomplete
— the incomplete version of the app
-
git clone
-
TypeScript
-
React
-
Next.js
-
The
edgedb
NPM module (docs) -
react-query for fetching
-
Axios for HTTP
$ git clone git@github.com:edgedb/simpletodo.git
$ cd simpletodo
$ yarn
Install the edgedb
CLI if you haven't already
# macOS/Linux
$ curl https://sh.edgedb.com --proto '=https' -sSf1 | sh
# Windows
PS> iwr https://ps1.edgedb.com -useb | iex
Then initialize the project. Run the following command from the project root.
$ edgedb project init
This does a few things:
- It installs EdgeDB if it isn't already installed on your computer.
- It prompts you to create or select a local EdgeDB instance to be used for this project.
- It automatically applies all migrations inside
dbschema/migrations
.
The database is now fully configured and ready for use!
Auto-generate the TypeScript query builder files based on the current schema:
$ npx @edgedb/generate edgeql-js
Start the server.
$ yarn dev
Then go to localhost:3000, and creating some todos, and start looking through the code to learn how to build applications with EdgeDB!