OnURL is a URL shortener which makes it easy to shorten and share your URLs.
Live site on Vercel is here.
- Framework: Next.js
- Styling: Tailwind CSS
- Schema Validation: Zod
- Icons: React Icons
- Social Media Share Buttons: react-share
- Database: MongoDB
- ODM: Prisma
- Illustrations: unDraw
- Linting: ESLint
- Code Formatting: Prettier
- Deployment: Vercel
TODO: README
will be updated for using Dev Containers.
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 build
And we can run the app in production
mode by running:
npm start