- Node.js (18.x or newer)
-
Create your account on Scrapbox. (if you don't have one)
-
Create a new project on Scrapbox.
-
Open
config/development.env
and edit the value ofSCRAPBOX_PROJECT_TITLE
.SCRAPBOX_PROJECT_TITLE="YOUR_PROJECT_TITLE"
-
Install dependencies.
npm clean-install
-
Generate FAQ data.
npm run generate
-
Start servers.
npm run watch:api npm run watch:front
Then Web and API server will start on the following ports.
- Web server:
http://localhost:3000
- API server:
http://localhost:8000
FAQs are generated from a Scrapbox project set up in config/development.env
.
To update the FAQs, execute the following command after updating the page in the Scrapbox project.
npm run generate