Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/lablab-ai/nextjs-cohere-boilerplate

Boilerplate for Nextjs, Co:here, TailwindCSS, Vercel
https://github.com/lablab-ai/nextjs-cohere-boilerplate

ai boilerplate cohere nextjs tailwind vercel

Last synced: 3 days ago
JSON representation

Boilerplate for Nextjs, Co:here, TailwindCSS, Vercel

Awesome Lists containing this project

README

        

# Co:here Nextjs Starter / Boilerplate

Nextjs boilerplate for Co:here generate API ready to deploy on Vercel. Visit our [Co:here](https://lablab.ai/tech/cohere) page for more starters, tutorials, hackathons and projects built on Co:here API. Demo: https://nextjs-cohere-boilerplate.vercel.app/

## How to use Co:here starter

This is a starter project that will help you getting started with Co:here API in a few minutes.

```bash
# clone repo
git clone https://github.com/lablab-ai/nextjs-cohere-boilerplate.git

# change folder
cd nextjs-cohere-boilerplate
```

First, install
```bash
npm i

# or
yarn
```
Then you need to get your Co:here API Key from [here](https://os.cohere.ai/) and insert it into the .env file

Run the development server:
```bash
npm run dev

# or
yarn dev
```

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

You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/](http://localhost:3000/api/). The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

![image](https://user-images.githubusercontent.com/64021988/193026220-f9110932-01e2-4ea4-8afd-7810310750bd.png)

### Relevant links
- [Nextjs Documentation](https://nextjs.org/docs)
- [Co:here tech page](https://lablab.ai/t/cohere)

---

[![Artificial Intelligence Hackathons, tutorials and Boilerplates](https://storage.googleapis.com/lablab-static-eu/images/github/lablab-banner.jpg)](https://lablab.ai)

## Join the LabLab Discord

![Discord Banner 1](https://discordapp.com/api/guilds/877056448956346408/widget.png?style=banner1)
On lablab discord, we discuss this repo and many other topics related to artificial intelligence! Checkout upcoming [Artificial Intelligence Hackathons](https://lablab.ai) Event

[![Acclerating innovation through acceleration](https://storage.googleapis.com/lablab-static-eu/images/github/nn-group-loggos.jpg)](https://newnative.ai)