OnURL is a URL shortener which makes it easy to shorten and share your short URLs.
Live site on Vercel is here.
- Framework: Next.js
- Styling: Tailwind CSS
- TODO: Fix README for server actions (react hook form etc.)
- Forms: React Hook Form
- Schema Validation: Zod
- Icons: React Icons
- Social Media Share Buttons: react-share
- Database: MongoDB
- ODM: Prisma
- Illustrations: unDraw
- Linting: ESLint
- Code Formatting: Prettier
First, you need to set a MongoDB connection string for DATABASE_URL in .env.development.
Install dependencies:
Create db constaints (like @unique indexes):
Run it in development mode:
First, we need to set a MongoDB connection string for DATABASE_URL in .env.production.
After that, we need to run the below command first to create a production build:
npm run buildAnd we can run the app in production mode by running:
npm start