Skip to main content
This guide explains how to effectively develop your application using ProStack’s development workflow.

Development Server

Start the development server with:
The development server will be available at http://localhost:3000 with hot reloading enabled.

Project Structure

ProStack follows a modular structure to keep your code organized:

Development Scripts

ProStack includes several npm scripts to help with development:

Working with Components

ProStack includes a set of reusable UI components in the components/ directory. These components are built with accessibility and performance in mind.

Example: Using a Button Component

Working with Server Actions

ProStack uses React Server Actions for server-side operations. Here’s an example of a server action for joining a waitlist:

Error Handling

ProStack includes a standardized approach to error handling:
  1. Use try/catch blocks for server-side operations
  2. Return structured error responses from server actions
  3. Use toast notifications (via Sonner) for user-friendly error messages

Debugging

For debugging your Next.js application, you can:
  1. Use the built-in Chrome DevTools for client-side debugging
  2. Add console logs with console.log() for quick debugging
  3. Set the NODE_OPTIONS='--inspect' environment variable for server-side debugging

Next Steps

Database Management

Learn how to work with the database using Prisma

Docker Deployment

Deploy your application with Docker

PM2 Deployment

Deploy your application with PM2