Home
Softono
onurl

onurl

Open source TypeScript
130
Stars
36
Forks
0
Issues
2
Watchers
3 months
Last Commit

About onurl

URL shortener created with Next.js, TypeScript, Tailwind CSS & Prisma.

Platforms

Web Self-hosted

Languages

TypeScript

OnURL

OnURL is a URL shortener which makes it easy to shorten and share your URLs.
Live site on Vercel is here.

💻 Tech Stack

⌨️ Development

TODO: README will be updated for using Docker.

First, you need to set a PostgreSQL connection string for POSTGRES_URL in .env.development.

Install dependencies:

pnpm install

Generate SQL migrations after schema changes:

pnpm db:generate

Apply database migrations:

pnpm db:migrate

Run it in development mode:

pnpm dev

🚀 Build

First, we need to set a PostgreSQL connection string for POSTGRES_URL in .env.production.

After that, we need to run the below command first to create a production build:

pnpm build

And we can run the app in production mode by running:

pnpm start