my main sandbox where I share thoughts on software development. I also use it to test new things in web development.
- Built with Next.js for rendering of static pages and cache management (SEO optimized).
- Fully responsive design, and of course, Dark Mode because it is 2025.
- Optimized for SEO with custom
robots.txtand sitemap generation. - Dynamic routing with static site generation for blazing-fast performance.
- Styled with TailwindCSS because I need to get better at it.
- Framework: Next.js
- Styling: Tailwind CSS
- Hosting: Vercel
- Content: Markdown-based blog posts - No CDN and not planning to implement one.
- Database: Postgres + Prisma ORM (hosted on Neon - serverless)
src/
├── app/ # Application routes and pages
├── components/ # Reusable UI components
├── styles/ # Global and component-specific styles
├── public/ # Static assets (images, icons, etc.)
└── utils/ # Utility functions and helpers
Some features of this application, such as database-related functionality, require a .env file with the correct PostgreSQL connection details. Without this file, certain features fail, but most of the application should be available.
Here’s an example of the required .env file structure:
DATABASE_URL=postgres://<username>:<password>@<host>/<database>?sslmode=requireMake sure to replace <username>, <password>, <host>, and <database> with your actual database credentials.
To run the project locally, follow these steps:
-
Clone the repository:
git clone https://github.com/your-username/carneiro.dev.git cd carneiro.dev -
Install dependencies:
npm install
-
Create a
.envfile in the root directory with your database credentials. -
Start the development server:
npm run dev
-
Open http://localhost:3000 in your browser to view the blog.
This blog is deployed on Vercel. To deploy your own version:
- Push your code to a GitHub repository.
- Connect the repository to Vercel.
- Vercel will automatically build and deploy your site.
For more details, check out the Next.js deployment documentation.
This project is open-source and available under the MIT License.
Thank you for visiting Carneiro.dev! Feel free to let me know what you think, and connect with me :)