Shiru Guestbook is a web application that allows users to create and view guestbook entries. This project is bootstrapped with the T3 Stack, AmazonRDS and OpenAI API.
Guestbook.walkthrough.mp4
Check out the live demo hosted on Vercel: shiru-guestbook-t3.vercel.app
- Create Guestbook Entries: Users can submit new entries to the guestbook.
- View Guestbook Entries: Users can view all entries in the guestbook.
- Japanese Translation: Integrated with OpenAI API to generate Japanese translations of guestbook messages.
- TypeScript: For static typing and enhanced code quality.
- Next.js: For server-side rendering and static site generation.
- Tailwind CSS: For rapid UI development with utility-first CSS.
- tRPC: For end-to-end typesafe APIs.
- Amazon RDS (PostgreSQL): As the database to store guestbook entries.
- OpenAI API: For generating Japanese translations of messages.
- Vercel: For deployment and hosting.
- Node.js and npm installed
- PostgreSQL database setup (Amazon RDS recommended)
-
Clone the repository
git clone https://github.com/sylfort/guestbook-t3.git cd guestbook-t3
-
Install dependencies
npm install
-
Setup environment variables
Create a
.env
file in the root directory and add the following:DATABASE_URL=your_postgresql_database_url NEXTAUTH_SECRET=your_nextauth_secret NEXTAUTH_URL=http://localhost:3000 GITHUB_ID=your_github_client_id GITHUB_SECRET=your_github_client_secret DISCORD_CLIENT_ID=your_discord_client_id DISCORD_CLIENT_SECRET=your_discord_client_secret OPENAI_API_KEY=your_openai_api_key
-
Run the development server
npm run dev
Open http://localhost:3000 to view the app in the browser.
Deploy the application to Vercel by following their deployment guide.