This repository contains the source code for nyblom.io.
This site is built using React, Next, Tailwind CSS and TypeScript.
The site is hosted on Vercel.
All Typescript lives in the src
folder, as this gives a cleaner overview of everything in the repo.
Blog post mdx files are placed under posts
.
Any page content that is not a blog post is placed under content
.
As per Nextjs documentation, the public
folder is kept in the root of the project.
Step 1: Clone repository
git clone git@github.com:Qw4z1/nyblom-io.git
Step 2: Install dependencies
yarn
Step 3: Add API_URL and token.
This project uses a custom API that I've built. You'll find the source code for that at this url.
The API is dockerised, but note that you'll also need a MySQL database to connect to. If you need a suggestion, check out Planetscale.
Step 4: Add .env file
At the root of the project add a file called .env with the following keys.
NOTION_TOKEN= NOTION_DB_ID= NEXT_PUBLIC_ROOT_URL=http://localhost:3000 CONVERTKIT_API_KEY= NEXT_PUBLIC_API_URL= NEXT_PUBLIC_API_TOKEN=
Step 5: Run local build
yarn dev