Code Monkey home page Code Monkey logo

blog-rebuild's Introduction

Powered by Astro & Notion

customized by Pickyzz

Requirements

  • Node.js and npm (or yarn, pnpm, bun)

Work with notion as CMS

  • Duplicate [This] Notion template and do not edit the table's name

  • Rename .env.example to .env and add your NOTION_KEY key and DATABASE_ID

  • To sync posts for developing use npm run sync or npm run sync:published

  • use npm run generate get all published posts and build for production

Developing

Run the following command on your local environment:

Then, you can run locally in development mode with live reload:

npm run dev

Open http://localhost:4321 with your favorite browser to see your project.

Deploy to production (manual)

You can create an optimized production build with:

npm run build

or

npm run generate

Now, your blog is ready to be deployed. All generated files are located at dist folder, which you can deploy the folder to any hosting service you prefer.

๐Ÿงž All Commands

Note: run from the root of the project, from a terminal:

Command Action
npm install Installs dependencies
npm run dev Starts local dev server at localhost:3000
npm run build Build your production site to ./dist/
npm run preview Preview your build locally, before deploying
npm run clean Remove ./dist folder
npm run format Run ESLint and report styling error
npm run sync Sync all posts from notion database
npm run sync:publised Sync only published post from notion database
npm run generate Sync published post and build static site for deploying

blog-rebuild's People

Contributors

renovate[bot] avatar pickyzz avatar potbick avatar actions-user avatar imgbot[bot] avatar imgbotapp avatar

Stargazers

Bocxx avatar Nikola Hristov avatar nuknuk avatar

blog-rebuild's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm @astrojs/prefetch Unavailable
npm @types/github-slugger Unavailable

This repository currently has no open or pending branches.

Detected dependencies

github-actions
.github/workflows/deploy.yml
  • actions/checkout v4
  • oven-sh/setup-bun v2
  • actions/cache v4
  • pickyzz/cf-pages-action v1
.github/workflows/test.yml
  • actions/checkout v4
  • oven-sh/setup-bun v2
.github/workflows/watcher.yml
  • actions/checkout v4
  • oven-sh/setup-bun v2
npm
package.json
  • @astrojs/mdx 3.1.3
  • @astrojs/prefetch 0.4.1
  • @astrojs/react 3.6.0
  • @astrojs/rss 4.0.7
  • @astrojs/sitemap 3.1.6
  • @astrojs/tailwind 5.1.0
  • @divriots/jampack 0.24.4
  • @notionhq/client 2.2.15
  • @playwright/test 1.45.2
  • @resvg/resvg-js 2.6.2
  • @tailwindcss/aspect-ratio 0.4.2
  • @tailwindcss/line-clamp 0.4.4
  • @tailwindcss/typography 0.5.13
  • @types/github-slugger 2.0.0
  • @types/react 18.3.3
  • @typescript-eslint/parser 7.16.1
  • astro 4.12.2
  • astro-eslint-parser 1.0.2
  • astro-font 0.0.81
  • commitizen 4.3.0
  • cz-conventional-changelog 3.3.0
  • daisyui 4.12.10
  • dotenv 16.4.5
  • eslint 9.7.0
  • eslint-plugin-astro 1.2.3
  • fuse.js 7.0.0
  • github-slugger 2.0.0
  • husky 9.1.1
  • image-type 5.2.0
  • lint-staged 15.2.7
  • mdast-util-to-string 4.0.0
  • notion-to-md 3.1.1
  • prettier 3.3.3
  • prettier-plugin-astro 0.14.1
  • prettier-plugin-tailwindcss 0.6.5
  • react 18.3.1
  • react-dom 18.3.1
  • reading-time 1.5.0
  • rehype-external-links 3.0.0
  • remark-collapse 0.1.2
  • remark-toc 9.0.0
  • rimraf 6.0.1
  • satori 0.10.14
  • sharp 0.33.4
  • tailwind-merge 2.4.0
  • tailwindcss 3.4.6
  • tinycolor2 1.6.0
  • ts-node 10.9.2
  • typescript 5.5.3

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.