Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/unbody-io/example-next.js

Example boilerplate for https://Unbody.io typescript in https://Netxjs.org (Page Router)
https://github.com/unbody-io/example-next.js

Last synced: about 2 months ago
JSON representation

Example boilerplate for https://Unbody.io typescript in https://Netxjs.org (Page Router)

Awesome Lists containing this project

README

        

# Unbody Next.js Starter
This is a [Unbody.io](https://unbody.io) & [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Including examples of:
- [X] Semantic search using Unbody's `typescript` SDK
- [X] Generative search using Unbody's `typescript` SDK
- [X] Basic data retrieval using Unbody's `typescript` SDK
- [X] How to initialize Unbody's `typescript` SDK

## Tech Stack
- [Next.js](https://nextjs.org/)
- [TypeScript](https://www.typescriptlang.org/)
- [Unbody.io](https://unbody.io)
- [Tailwind CSS](https://tailwindcss.com/)

## Getting Started

### Setup Unbody.io
1. Create an account on [Unbody.io](https://unbody.io)
2. Create a new project
3. Add your sources (this project supports `Google Drive`, `Discord`, and `Github Issues`)
4. Create a new API key - you can do this under the `Settings > Developer Settings` tab in your project.
5. Copy the API key and Project ID and paste it into the `.env.local` file in the root of this project.

### Setup the project
First, run the development server:
```bash
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.