npm install
npm start
To build and test components, we use Storybook. To run:
npm run storybook
Navigate to localhost:9001
npm run prod
Navigate to localhost:5000
Static files such as images, robots.txt, etc are stored in the /static folder. The contents of this folder are copied to the /dist folder during the production build. The contents, not the folder itself, are copied, so that robots.txt, etc will be at the top-level of the deployed application.
npm run convert // Converts bookSource.html to json
npm run convert-annotations // Converts footnotes to annotations json
npm run convert-editor // Converts bookSource.json and sourceAnnotations.json to editor-compliant json
// run generate-data from /api to import jsons into database.