https://github.com/arjuncodess/logo-generator-replicate
https://github.com/arjuncodess/logo-generator-replicate
logo-generator nextjs replicate tailwindcss
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/arjuncodess/logo-generator-replicate
- Owner: ArjunCodess
- License: apache-2.0
- Created: 2024-03-11T10:24:04.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-06-03T11:58:05.000Z (almost 2 years ago)
- Last Synced: 2025-04-03T02:44:07.977Z (12 months ago)
- Topics: logo-generator, nextjs, replicate, tailwindcss
- Language: JavaScript
- Homepage: https://logo-generator-five.vercel.app
- Size: 734 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Getting started with Next.js and Replicate
This is a [Next.js](https://nextjs.org/) 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](https://replicate.com/docs/get-started/nextjs)
## Noteworthy files
- [pages/index.js](pages/index.js) - The React frontend that renders the home page in the browser
- [pages/api/predictions/index.js](pages/api/predictions/index.js) - The backend API endpoint that calls Replicate's API to create a prediction
- [pages/api/predictions/[id].js](pages/api/predictions/[id].js) - The backend API endpoint that calls Replicate's API to get the prediction result
## Usage
Install dependencies:
```console
npm install
```
Add your [Replicate API token](https://replicate.com/account#token) to `.env.local`:
```
REPLICATE_API_TOKEN=
```
Run the development server:
```console
npm run dev
```
Open [http://localhost:3000](http://localhost:3000) with your browser.
For detailed instructions on how to create and use this template, see [replicate.com/docs/get-started/nextjs](https://replicate.com/docs/get-started/nextjs)