Learn how to use Nhost with Next.js
todos
and sign in using a Magic Link to manage their own todos
with attachments.
todos
todos
.
todos
is available through the auto-generated APIstodos
on the left panel, below New Table.
todos
selected, click on …, followed by Edit Permissions.
You will set permissions for the user
role and actions insert
, select
, update
, and delete
.
user
role and action insert
and set permissions as follows:
files
table is managed by Nhost and is defined on the storage
schema. Click on the dropdown right next to schema.public
and choose schema.storage
.
With the files
table selected, click on …, followed by Edit Permissions.
As before, we want to set permissions for the user
role and actions insert
, select
, delete
.
user
role and action insert
and set permissions as follows:
Nhost project created
Database todos created
Permissions set for todos and files
Magic Link enabled
<SUBDOMAIN>
and <REGION>
with the values from the project created earlier.
subdomain
and region
can be found in the Nhost Dashboard under Project InfoTodos
ComponentSignIn
and Todos
in place, update ./src/App.jsx
to use the new components: