This is the source code of my home page and blog currently hosted in https://abelcastro.dev.
Features:
This project was bootstrapped with create-next-app
.
Provide somehow an Rest-API that returns blog posts as defined in definitions.ts
.
Create a .env
file based on the .env.template
Install dependencies:
pnpm i
Run the development server:
pnpm dev
Open http://localhost:3000 with your browser to see the result.
This project provides unit tests with vitest.
Run:
pnpm test
With coverage:
pnpm test:coverage
This project provides e2e test with playwright.
Headless run:
pnpm exec playwright test
Run with UI:
pnpm exec playwright test --ui
https://nextjs.org/docs/pages/building-your-application/configuring/mdx#remote-mdx
https://gaudion.dev/blog/mdx-syntax-highlighting
https://tailwindcss.com/docs/background-color
https://nextjs.org/docs/app/building-your-application/optimizing/metadata
https://playwright.dev/docs/ci-intro#on-deployment https://cushionapp.com/journal/how-to-use-playwright-with-github-actions-for-e2e-testing-of-vercel-preview