The guestbook app is a simple web application that allows you to create and view guestbook entries. This project bootstraped with T3 App and implemented caching with Redis.
Live example hosted on Vercel: https://guestbook-ikrammaulana.vercel.app
To get your Github Client ID and Secret, you need to create a Github OAuth app. You can follow the steps from this guide. then add your GITHUB_CLIENT_ID
and GITHUB_CLIENT_SECRET
to your .env
file. Make sure to make separate Github Client ID and Secret for development and production environment.
To get your Redis REST URL and Token, you can make a free account on Upstash. Then add your UPSTASH_REDIS_REST_URL
and UPSTASH_REDIS_REST_TOKEN
to your .env
file.
-
Clone this repository
git clone https://github.com/Ikram-Maulana/guest-book.git
-
Install dependencies
cd guest-book pnpm install
-
Add your environment variables to your
.env
file in the root of your projectcp .env.example .env
-
Start the development server
pnpm dev
-
Open http://localhost:3000 with your browser to see the result
-
Fork this repository
-
Create new project on Vercel
-
Connect your repository to Vercel
-
Add your environment variables to your Vercel project
DATABASE_URL= NEXTAUTH_SECRET= GITHUB_CLIENT_ID= GITHUB_CLIENT_SECRET= NEXT_PUBLIC_PORTFOLIO_URL= UPSTASH_REDIS_REST_URL= UPSTASH_REDIS_REST_TOKEN=
-
Deploy your project