Skip to content

Repository files navigation

Yanorra Website

A web-based interactive map and wiki for exploring the fictional world of Yanorra.

Dev Env Setup

Windows

Both Node.js and npm need to be installed. On Windows, I prefer to use Fast Node Manager, aka fnm.

Install FNM

winget install Schniz.fnm

Activate FNM

  • Now setup node environment:
fnm env --use-on-cd | Out-String | Invoke-Expression
  • Download and Install Node.js
fnm use --install-if-missing 20

Setup Node

At 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 Unrestricted

Activate Node

Now node and npm should work:

node -v # should print something like `v20.18.0`
npm -v  # should print something like `10.8.2`

Running Website Locally

npm run build

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.

npm run dev

Runs the web browser

REST API (dev/preview)

The website now includes a versioned API router mounted under /api/v1/*.

Current endpoints:

  • GET /api/v1/about returns About markdown content and metadata.
  • GET /api/v1/version returns service and application version details.
  • GET /api/v1/query is a stub endpoint (returns 501 Not Implemented) for future query features.

To add new endpoints, register a new route in scripts/apiRouter.ts under the routes table.

Learn More

You can learn more in the Create React App documentation.

To learn React, check out the React documentation.

About

Website code for yanorra.world

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Contributors

Languages