Congrats! Your app is ready, including user sign-up and log-in.
To add a new model to your app,
run the following in your terminal:
blitz generate all project name:string
import { Suspense } from "react"; import type { BlitzPage } from "blitz"; import { Link, useMutation, Routes } from "blitz"; import BaseLayout from "../core/layouts/base-layout"; import logout from "../auth/mutations/logout"; import useCurrentUser from "../core/hooks/use-current-user"; /* * This file is just for a pleasant getting started page for your new app. * You can delete everything in here and start from scratch if you like. */ const UserInfo = () => { const { user } = useCurrentUser(); const [logoutMutation] = useMutation(logout); if (user) { return ( <>
{user.id}
{user.role}
Congrats! Your app is ready, including user sign-up and log-in.
To add a new model to your app,
run the following in your terminal:
blitz generate all project name:string