https://github.com/replicate/star-trek-nextjs
Star Trek choose your own adventure
https://github.com/replicate/star-trek-nextjs
Last synced: about 1 month ago
JSON representation
Star Trek choose your own adventure
- Host: GitHub
- URL: https://github.com/replicate/star-trek-nextjs
- Owner: replicate
- License: mit
- Created: 2023-04-18T21:36:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-04-19T17:09:23.000Z (about 3 years ago)
- Last Synced: 2025-02-28T19:39:21.409Z (over 1 year ago)
- Language: JavaScript
- Size: 1.08 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Star Trek Adventure
## How it works
This app is powered by:
🚀 [Replicate](https://replicate.com/?utm_source=project&utm_campaign=paintbytext), a platform for running machine learning models in the cloud.
▲ [Vercel](https://vercel.com/), a platform for running web apps.
⚡️ Next.js [server-side API routes](pages/api), for talking to the Replicate API.
👀 Next.js React components, for the browser UI.
🍃 [Tailwind CSS](https://tailwindcss.com/), for styles.
## Development
1. Install a recent version of [Node.js](https://nodejs.org/)
1. Copy your [Replicate API token](https://replicate.com/account?utm_source=project&utm_campaign=paintbytext) and set it in your environment:
```
echo "REPLICATE_API_TOKEN=" > .env.local
````
1. Install dependencies and run the server:
```
npm install
npm run dev
```
1. Open [localhost:3000](http://localhost:3000) in your browser. That's it!