To start locally for development:
npm run dev
The app runs at http://localhost:4000
.
To build:
npm run build
To start after building:
npm start
TypeScript Static Blog works using static files as well as static cache files.
To add a new post:
npm run posts:new
To update the posts cache so that it appears on the website:
npm run posts
./bin/importFromWordpress.mjs
and change the apiUrl
variable to the URL of your WordPress's RestAPI.npm run posts:import
http://localhost
to your website's URL (mainly for SEO tags).