Skip to content
Avatar of vercel-labsvercel-labs/book-inventory

Next.js Book Inventory

An example of searching, filtering, and pagination.

CleanShot 2024-08-11 at 15.52.41@2x

Next.js Book Inventory

Demo: https://next-books-search.vercel.app

This is a book inventory app built with Next.js, Drizzle, and PostgreSQL. The database contains over 2,000,000 books from Goodreads. Full dataset here.

Database Setup

This is currently using a Postgres extension called unaccent to remove accents from the book titles. This also uses the pgvector extension to use Postgres as a vector store. To install these extensions, run the following command on your database:

CREATE EXTENSION IF NOT EXISTS unaccent;
CREATE EXTENSION IF NOT EXISTS vector;

Deploy on Vercel

CleanShot 2024-08-11 at 15.52.41@2x
Avatar of vercel-labsvercel-labs/book-inventory

Next.js Book Inventory

An example of searching, filtering, and pagination.

Next.js Book Inventory

Demo: https://next-books-search.vercel.app

This is a book inventory app built with Next.js, Drizzle, and PostgreSQL. The database contains over 2,000,000 books from Goodreads. Full dataset here.

Database Setup

This is currently using a Postgres extension called unaccent to remove accents from the book titles. This also uses the pgvector extension to use Postgres as a vector store. To install these extensions, run the following command on your database:

CREATE EXTENSION IF NOT EXISTS unaccent;
CREATE EXTENSION IF NOT EXISTS vector;

Deploy on Vercel

Unleash New Possibilities

Deploy your app on Vercel and unlock its full potential