A link shortener built with Next.js & Prisma
Node.js: For running the website (v18 or higher)Yarn: For installing dependencies (corepack enable)PostgreSQL: For storing shortened linksRedis: For rate limiting
# Install dependencies
$ yarn install
# Rename .env.example to .env and fill in the values
$ mv .env.example .env
$ code .env
# Build the website
$ yarn build
# Start the website
$ yarn start# Run the development server
$ yarn dev
# Lint the code
$ yarn lint
# Lint the code and fix errors
$ yarn lint:fix
# Format the code
$ yarn format
# Format the code and fix errors
$ yarn format:fix