You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fixed a bug with double state saving after editing a node
* Small refactor of saving maps' states in jsMind class with some comments
* Updated comments in HTTPClient class
* Removed ActionStack's import and updated saving initial state of a mind map in main.js
* Updated and compressed comments in main.js
* Improved code readability of click handlers for "Open buttons"
* Cleaned jsMind's options' definition in main.js
* Fixed spacings and comments in index.html
* Removed second default value from preformFetch() and fixed docstrings in jsMind undo()/redo()
* Capitalized chapters and added one for installing the server
* Added alternative method to start the server and linked it's section in Try It Out chapter
* Improved formatting of the building guide
<imgwidth="1549"alt="JabMap opening a mindmap example"src="https://github.com/user-attachments/assets/23aa56d0-4432-4e5f-957b-8797d36a22fd" />
7
7
8
-
## try it out!
9
-
The current state of the application is hosted on [github pages](https://jabref.github.io/jabmap/) for you to try out. Note that saving and loading does not work when running the app like this. This is because both require communcation with JabRef's HTTP server which will get blocked for security reasons by your browser.
8
+
## 🌟 Try It Out!
9
+
The current state of the application is hosted on [github pages](https://jabref.github.io/jabmap/) for you to try out. Note that saving and loading mind maps does not work when running the app like this. This is because both require communication with the [JabRef's HTTP server](#getting-the-server) which will be restricted by your browser for security reasons.
10
10
11
-
## 💾 installation
11
+
## 💾 Installation
12
+
### Building the app
12
13
Currently, there is no production build available for download so you have to build it yourself.
13
-
To do this, you need to have npm and node.js installed. Installing them with [nvm](https://github.com/nvm-sh/nvm) is the recommended way.
14
+
To do this, you need to have `npm` and `node.js` installed. Installing them with [nvm](https://github.com/nvm-sh/nvm) is the recommended way.
Installation Guide for Windows and Linux / OS X is available [here](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm).
16
17
17
-
Then, clone this repo onto your machine and open a terminal session at the project root.
18
+
Then, clone this repository onto your machine and open a terminal session at the project root.
18
19
19
-
Run the following commands:
20
-
1.```npm install``` this will install all necessary packages in a 'node_modules' directory. You may run this command to update existing packages.
21
-
2.```npm run build```to build the app. This will bundle the app and dependencies into a 'dist' directory.
22
-
3.```npm run preview```to preview the build-output in your browser. (click on the link in the terminal)
20
+
Then, run the following commands:
21
+
1.```npm install``` - this will install all necessary packages in a `./node_modules` directory. You may run this command to update existing packages.
22
+
2.```npm run build```- this will bundle the app and dependencies into a `./dist` directory.
23
+
3.```npm run preview```- this will run the preview of the build-output in your browser (_click on the link in the terminal_).
23
24
24
-
Alternatively, you can simply open the index.html file in the dist directory after building to run the application.
25
+
Alternatively, you can simply open the `index.html` file (_using IDEA_) in the `./dist` directory after building and choose a browser (_in the top right corner_) to run the application.
25
26
26
-
### Saving and opening mindmaps
27
-
As mentioned above, saving and opening are handled by JabRef through it's HTTP server. Currently you have to start it manually.
27
+
### Getting the server
28
+
As mentioned above, saving and loading of mind maps are handled by JabRef's HTTP server. Currently you have to start it manually:
28
29
29
-
First clone the repo at https://github.com/iloveskittles82/jabref
30
+
First clone our [JabRef's fork repository](https://github.com/iloveskittles82/jabref) (_Note: It is recommended to complete this step of_[_JabRef's setup guide_](https://devdocs.jabref.org/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-12-build.html)).
30
31
31
-
Then, open it in your editor of choice (IDEA works well for this) and locate the 'rest-api.http' file at 'jabsrv/src/test/rest-api.http'
32
+
After you cloned the repository, open it in editor of your choice (_IDEA works well for this_) and locate the `jabsrv/src/test/rest-api.http` file.
32
33
33
34
Follow the steps described at the top of the file to start the server.
34
35
35
-
(Note: also see https://devdocs.jabref.org/code-howtos/http-server.html for more information on how to start the server)
36
+
_Alternatively_ you can start it with the `main()` method of `org.jabref.http.server.cli.ServerCli` package located at `./jabsrv-cli.src.main.java`.
37
+
38
+
More about starting the server in [JabRef's server documentation](https://devdocs.jabref.org/code-howtos/http-server.html)
0 commit comments