A Next.js application that generates PDFs with lorem ipsum text and a random UUID.
- First, install the Railway CLI:
npm i -g @railway/cli- Login to Railway:
railway login- Initialize your Railway project:
railway init- Link your repository:
railway link- Deploy your application:
railway upTo run the development server:
npm run devOpen http://localhost:3000 with your browser to see the result.
To create a production build:
npm run buildNo environment variables are required for this application.
- This application uses @react-pdf/renderer for PDF generation
- Each page refresh generates a new UUID
- The PDF is rendered client-side only
This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.
To learn more about Next.js, take a look at the following resources:
- Next.js Documentation - learn about Next.js features and API.
- Learn Next.js - an interactive Next.js tutorial.
You can check out the Next.js GitHub repository - your feedback and contributions are welcome!
The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.
Check out our Next.js deployment documentation for more details.