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.
First, install all dependencies:
npm ior
yarn installor
pnpm iAfter 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:3000your 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:3000After that everything is ready, just run the app, and play the game!
npm run devor
yarn devor
pnpm devOpen http://localhost:3000 with your browser to see the result.