Home Projects Portfolio Dashboard Export PDF Log in

Starting Fresh: Building with Next.js and React

Starting a new project often brings a mix of excitement and the familiar weight of boilerplate. Recently, I began working on the bioiglesia project, a new initiative that serves as the foundation for a web platform. The first step was setting up a robust environment using Next.js and React to ensure scalability and performance from the start.

The Power of a Solid Foundation

When you initialize a project with modern frameworks, you aren't just writing code—you are defining how your team will collaborate. By choosing Next.js, we gain access to server-side rendering, efficient routing, and an ecosystem built for growth.

Starting with a clean slate allows us to enforce linting rules and directory structures early on. For example, setting up a consistent structure for components and styles keeps the codebase maintainable as features expand:

// A clean entry point for a new feature component
import React from 'react';

export const FeatureCard = ({ title }: { title: string }) => (
  <div className="feature-container">
    <h2>{title}</h2>
  </div>
);
/* Consistent styling approach */
.feature-container {
  padding: 1rem;
  border: 1px solid #ccc;
  border-radius: 8px;
}

Why We Choose These Tools

  1. Developer Experience: ESLint ensures our code stays clean without manual intervention.
  2. Performance: Next.js provides out-of-the-box optimizations like image component support and smart prefetching.
  3. Deployment: Leveraging platforms like Vercel allows for seamless CI/CD pipelines that deploy every commit instantly, keeping feedback loops short.

Moving Forward

As the bioiglesia project grows, the goal is to implement the Repository Pattern to decouple our data fetching from the UI. By keeping our business logic independent of React components, we ensure that testing becomes simpler and our code remains portable. Every line written at this stage is an investment in the ease of future maintenance.


Generated with Gitvlg.com

Starting Fresh: Building with Next.js and React
Agustín Ibarrola

Agustín Ibarrola

Author

Share: