Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 750 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 750 Bytes

hashnode-preview

A preview service for freeCodeCamp.org news for posts on Hashnode (headless) CMS.

This uses Hashnode's GraphQL API and Nunjucks to render an approximate preview of a post as it will appear when published live on /news.

Development

Warning

Please note that changes to the nunjucks templates will not be reflected in the watch mode.

pnpm install
pnpm run start

Deployment

  • The app is deployed on DigitalOcean App Platform, and all changes merged to the main branch are deployed using the deploy.yml workflow.

  • Alternatively, you can run the app using the included docker-compose.yml file.

    docker compose build
    docker compose up -d