A web-based interactive map and wiki for exploring the fictional world of Yanorra.
Both Node.js and npm need to be installed. On Windows, I prefer to use Fast Node Manager, aka fnm.
winget install Schniz.fnm- Now setup node environment:
fnm env --use-on-cd | Out-String | Invoke-Expression- Download and Install Node.js
fnm use --install-if-missing 20At this point the node.exe is installed, and so is the npm script. However, your system may not allow you to run npm if it is not configured to run scripts. To allow this do:
Set-ExecutionPolicy -ExecutionPolicy UnrestrictedNow node and npm should work:
node -v # should print something like `v20.18.0`
npm -v # should print something like `10.8.2`Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.
The build is minified and the filenames include the hashes.
Your app is ready to be deployed!
See the section about deployment for more information.
Runs the web browser
The website now includes a versioned API router mounted under /api/v1/*.
Current endpoints:
GET /api/v1/aboutreturns About markdown content and metadata.GET /api/v1/versionreturns service and application version details.GET /api/v1/queryis a stub endpoint (returns501 Not Implemented) for future query features.
To add new endpoints, register a new route in scripts/apiRouter.ts under the routes table.
You can learn more in the Create React App documentation.
To learn React, check out the React documentation.