First make sure you have installed the project dependencies
npm install
After all dependencies are installed, run
node src/backend/api.cjs
or the equivalent
npm run api
in order to run the API server for posting and getting our blog posts.
Finally, run
npm run dev
in order to start our auto-refreshing development server.
To build your app and serve it from a content delivery server you first need to run
npm run build
and after that operation has completed run
node src/backend/server.cjs
or the equivalent
npm run server
to start the content server.
Don't forget that your API server must be running as well.