Implementing a GraphQL API with a Solid-Start Application
November 26, 2022Walk through a Solid Start todo app backed by a GraphQL API in the same project: schema and resolvers in a graphql route, then createRouteData queries.
Walk through a Solid Start todo app backed by a GraphQL API in the same project: schema and resolvers in a graphql route, then createRouteData queries.
Add a tRPC API to a Solid Start app: define a router with @trpc/server and zod, mount it at a catch-all route, and call it from components with @trpc/client.
Build a todo app in Solid Start with file based routing, a MongoDB and Mongoose model, API routes for the data, and createRouteData to load todos into the page.
What SQL is, where it runs (SQLite, PostgreSQL, MySQL and more), and a first hands on session creating a table, inserting rows and querying them with SELECT.
Quick Mongoose reference: the connection URI, connecting, defining schemas and models, common model methods, and relating documents with refs and populate.
Build a todo app with Express, EJS and Mongoose from scratch: connect MongoDB with dotenv, add morgan and method-override, seed todos, then deploy to Heroku.
Express quick reference covering project setup, middleware like morgan and cors, routes, the req and res objects, templates, routers, databases and API calls.
A beginner Express walkthrough: what a web server is, serving static files, EJS templates and partials, building a todo list you can cross off, and deploying.