Skip to content

replicate/getting-started-nextjs-typescript

 
 

Repository files navigation

Getting started with Next.js and Replicate

This branch uses Typescript, Tailwind and the Next.js App Router

This is a Next.js template project that's preconfigured to work with Replicate's API.

You can use this as a quick jumping-off point to build a web app using Replicate's API, or you can recreate this codebase from scratch by following the guide at replicate.com/docs/get-started/nextjs

Noteworthy files

Usage

Get a copy of this repo:

npx create-next-app --example https://github.com/replicate/getting-started-nextjs-typescript your-project-name
cd your-project-name

Install dependencies:

npm install

Add your Replicate API token to .env.local:

REPLICATE_API_TOKEN=<your-token-here>

Run the development server:

npm run dev

Open http://localhost:3000 with your browser.

For detailed instructions on how to create and use this template, see replicate.com/docs/get-started/nextjs

iguana

About

A Next.js + Typescript starter app using Replicate

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 80.6%
  • CSS 13.8%
  • JavaScript 5.6%