A fullstack Jamstack app to help you keep track of the books you're reading.
Built with:
- Next.js for UI, routing and serverless functions
- FaunaDB for cloud-based data storage
- Auth0 for authentication
- Tailwind CSS for styling
Originally inspired by James Q Quick's Fullstack Jamstack tutorial
-
Clone this repo.
-
Install dependencies with
npm install
. -
In the root of the project, add a
.env.local
file with the following keys
AUTH0_SECRET=
AUTH0_BASE_URL=
AUTH0_ISSUER_BASE_URL=
AUTH0_CLIENT_ID=
AUTH0_CLIENT_SECRET=
FAUNA_SECRET=
-
Follow the Auth0 Next.js Quickstart to see how to set up Auth0 with Next.js.
-
Follow the FaunaDB quickstart to set up a FaunaDB database. Under Security, create a new key, associate it with the database, and give it the role of
server
. -
Once you have your Auth0 and FaunaDB secrets, add them to
.env.local
and runnpm run dev
to spin up a local version of the app.