Skip to content

apisandipas/facetsdotme

Repository files navigation

Facets.me

  • a linktr.ee clone

Quick Start

To get it running, follow the steps below:

Setup dependencies

# Install dependencies
yarn i

# Configure environment variables.
# There is an `.env.example` in the root directory you can use for reference
cp .env.example .env

# Push the Prisma schema to your database
yarn db:migrate

Deployment

Next.js

Prerequisites

We do not recommend deploying a SQLite database on serverless environments since the data wouldn't be persisted. I provisioned a quick Postgresql database on Railway, but you can of course use any other database provider. Make sure the prisma schema is updated to use the correct database.

Deploy to Vercel

Let's deploy the Next.js application to Vercel. If you have ever deployed a Turborepo app there, the steps are quite straightforward. You can also read the official Turborepo guide on deploying to Vercel.

  1. Create a new project on Vercel, select the apps/nextjs folder as the root directory and apply the following build settings:

Vercel deployment settings

  1. Add your DATABASE_URL environment variable.

  2. Done! Your app should successfully deploy.

References

The stack originates from create-t3-app.