Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
A Next.js boilerplate starter with TypeScript, Tailwind CSS, Prisma setup, and Railway deployment instructions.
Havyt Next is a Next.js boilerplate starter that bundles TypeScript, Tailwind CSS, ESLint, Prettier, pre-configured SEO, and a ready-made Message/Alerts component so you can begin building a web app immediately.
Havyt Next is a starter template for Next.js that gives you a typed codebase in TypeScript, utility-first styling via Tailwind CSS, and a consistent developer toolchain with ESLint and Prettier. It runs on the Next.js framework, uses the src/pages/api directory for serverless API routes, and includes a sample endpoint at src/pages/api/hello.ts. The repository also provides step-by-step instructions for wiring up a PostgreSQL database through Prisma and deploying the app on Railway.
src/pages/api directory is mapped to /api/*, and a sample hello endpoint is included at src/pages/api/hello.ts.npm run dev or yarn dev, and the app is available at http://localhost:3000 with hot-reloading as you edit files.src/pages/api to create serverless functions that are automatically routed under /api/*.DATABASE_URL to a PostgreSQL connection string, seed the database with npx prisma db seed --preview-feature, and inspect data using prisma studio.The README describes a setup flow: install and log in to the Railway CLI, initialize a project, copy the PostgreSQL connection URL from the Railway plugin page, set it as DATABASE_URL in your .env file, then run railway up to deploy. After that, initialize Prisma with prisma init, generate the Prisma Client, and use npx prisma db seed --preview-feature to load initial data before starting the development server.
Run npm run dev or yarn dev in the project root and open http://localhost:3000 in your browser. Editing pages/index.js (or the TypeScript equivalent) will auto-update the page as you save.
The Prisma setup instructions say to keep postgresql as the database type. The README shows how to get a PostgreSQL connection URL from Railway and set it as DATABASE_URL in your .env file.
Yes. The src/pages/api directory is mapped to /api/* and the template includes a sample endpoint at src/pages/api/hello.ts. Files added to this directory become serverless API routes.
