edgedb / edgedb-examples

EdgeDB example projects for different stacks
61 stars 22 forks source link

Add Node.js example using EdgeDB Auth #112

Open scotttrinh opened 8 months ago

scotttrinh commented 8 months ago

To accompany the EdgeDB Auth Guide, this is an example of a complete stock Node.js HTTP server that exercises the EdgeDB Auth extension.

TODO in future effort:

scotttrinh commented 8 months ago

When I try edgedb project init, I'm getting edgedb error: cannot find package matching 5.0.. Should the version in edgedb.toml be 5.0 or 4.0?

Interesting. I don't think I actually made this edgedb.toml explicitly. I think it should be like 4.x or something like that. Will fix!

It might be nice to add a readme with some basic stuff. If we just included a few steps on how to get the project running and a link to the guide, that could be enough for starters.

Yeah, that makes sense to me.

It might also be nice to tell how to get the Nix environment up and running but also mention that it is optional so people know they can run the app without that.

Yeah, I think we can get this with a "Requirements" section that shows how to use the Nix flake, or if you do not have Nix installed, what the requirements are. Should make it clear that the Nix flake manages the environment dependencies for you.