First, run the development server:
npm install
npm run devThe app runs on [http://localhost:3000] and connects to the backend API.
Persistence layer The frontend does not store data locally. All paste data is fetched from the backend, which persists data in MongoDB.
Design decisions
- Built with Next.js for fast rendering and clean routing
- Backend kept separate to follow a clear client–server architecture
- Safe rendering of paste content to prevent script execution
- Minimal UI focused on functionality and correctness