This is the source code for my personal blog, joaocosta.dev. It's a statically generated site built with Next.js and styled with Tailwind CSS.
Blog posts are written and managed in Joplin. A GitHub Action runs periodically to pull the latest content from Joplin and commit it to this repository.
The images in the posts are places in the public/_resources directory.
- Next.js - Framework.
- TypeScript - Lang.
- Tailwind CSS - Styling framework.
- gray-matter - For parsing front-matter from markdown files.
- react-markdown - For rendering Markdown files.
To get a local copy up and running, follow these simple steps.
-
Clone the repo:
git clone https://github.com/JoaoCostaIFG/website.git
-
Install dependencies:
bun install
To view the site in development mode, run:
bun devOpen http://localhost:3000 with your browser to see the result.
To build the site for production, run:
bun run buildThis will create a static, production-ready build in the .next directory.
Deployments are made using docker. There's a action building the docker image for this site.