Skip to content

TheOrcDev/textualgames

Repository files navigation

Textual Games

Textual Games offers a nostalgic journey into the realm of classic MUD gaming, infused with an innovative twist of AI. Here, you have the power to craft your very own narrative, weaving tales that are uniquely yours.

Getting Started

First, install all dependencies:

npm i

or

yarn install

or

pnpm i

After that create your .env file

Copy .env.example to .env and fill in the values

In .env you need to put your app URL

NEXT_PUBLIC_APP_URL=http://localhost:3000

your ChatGPT configuration

GPT_API_KEY="YOUR_GPT_API_KEY"
GPT_MODEL="gpt-3.5-turbo"
GPT_TEMPERATURE="0.8"
GPT_MAX_TOKENS="1024"

your Postgres DB URL

DATABASE_URL="YOUR_DATABASE_URL"

Your Better Auth keys for authentication

BETTER_AUTH_SECRET=
BETTER_AUTH_URL=http://localhost:3000

After that everything is ready, just run the app, and play the game!

npm run dev

or

yarn dev

or

pnpm dev

Open http://localhost:3000 with your browser to see the result.

About

Textual games AI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published