Skip to content
프로젝트

damonsk/onlinewardleymaps

GitHub에서 보기

소개

OnlineWardleyMaps.com - Draw Wardley Maps in seconds using this free online tool

웹 및 앱 개발

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+2
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

OnlineWardleyMaps

Mentioned in Awesome Wardley Maps

The source code that runs www.OnlineWardleyMaps.com.

Also available as a standalone Visual Studio Extension - vscode-wardley-maps.

Developed by Damon Skelhorn.

Wardley Mapping courtesy of Simon Wardley, CC BY-SA 4.0. To learn more, see Simon's book.

Running locally

Dependencies for running locally: Node.js and Yarn.

`npm install yarn -g`

Change directory to frontend.

`cd frontend/`

Install dependencies

`yarn install`

Commands:

To run locally, develop/edit. Open web browser @ http://localhost:3000

 `yarn dev`

To create minified scripts/styling.

`yarn build`

To run all tests.

`yarn test`

To create package for use in vscode-wardley-maps or obsidian-wardley-maps.

`yarn package`

To validate npm package contents before publish:

`yarn package:pack`

To publish wmlandscape to npm locally:

`yarn package:publish`

Alternatively, you can also run it locally using the provided Dockerfile.

From the root repository, build a container image via

`docker build -t onlinewardleymaps .`

and then run it locally

`docker run -p 3000:3000 onlinewardleymaps`

Now you can access the frontend @ http://localhost:3000

Running frontend + local API with docker-compose

This repository now includes a local Node.js/TypeScript API implementation of:

  • POST /v1/maps/save
  • GET /v1/maps/fetch?id=<map-id>

The API stores maps as .owm files in a configurable data directory.

To run both frontend and API together:

`docker compose up --build`

Services:

Configuration options (all optional):

  • NEXT_PUBLIC_API_ENDPOINT (default: http://localhost:3001/v1/maps/ in compose, production endpoint otherwise)
  • OWM_DATA_PATH (default host path: ./data)
  • OWM_DATA_DIR (default container path: /data)

Example:

`OWM_DATA_PATH=./local-maps docker compose up --build`

API contract details

POST /v1/maps/save

  • Request JSON:
    • id string (optional; if empty/missing, server generates UUID)
    • text string (required)
    • mapIterations string (optional JSON-encoded array)
  • Behavior:
    • If id is provided, the corresponding <id>.owm file is overwritten.
    • If id is not provided, a new UUID is generated.
  • Response JSON:
    • { "id": "...", "text": "...", "mapIterations": "..." }

GET /v1/maps/fetch?id=<map-id>

  • Response JSON:
    • { "id": "...", "text": "...", "mapIterations": "..." }

Support the Project

If you find obsidian-wardley-maps, OnlineWardleyMaps or vscode-wardley-maps valuable, consider supporting its development:

Patreon

Follow on X (Twitter) @MapsAsCode for updates and announcements!

Your support helps maintain and improve this plugin as well as OnlineWardleyMaps and vscode-wardley-maps. Every contribution is appreciated. Thank you for your support!

관련 프로젝트 살펴보기

불러오는 중…