π Project files for a blog post about Building a Serverless Application with Next.js and CockroachDB!
Run the website locally
git clone https://github.com/harshhhdev/guestbook.git
cd guestbook
# Install deps
yarn
Rename .env.local.EXAMPLE
to .env.local
Now, go to CockroachDB, and create a new cluster. Create a user, and hit "connect", navigate over to connection string follow the instructions.
Next, run yarn generate && yarn migrate:dev
to pull your schema from your prisma/schema.prisma
file into CockroachDB.
yarn dev
Server should now be running on localhost
After setting up the project, and making changes:
git add .
git commit -m "commit message"
git push YOUR_REPO_URL YOUR_BRANCH