First, clone the repo to your local machine. You can do this by running the following command in your terminal: git clone https://github.com/nurcinozer/gist-blog.git
Next, install the dependencies by running the following command in your terminal: npm install
Then, add your GitHub token to the .env file. You can get your GitHub token from here: https://github.com/settings/tokens You need to add required scopes to your token.
Change github username in the utils/service.ts file.
Run the app by running the following command in your terminal: npm run dev
Open the app by running the following command in your terminal: http://localhost:3000
You can add your blog posts by creating a markdown extension file in gist. You can add metadata to your gist by adding YAML front matter to your gist. You can see the example gist here: https://bit.ly/3Rlk0e1