- Install Django 4.0.1 on your local machine
- Clone this repo to your local machine
- In the current directory (same as
manage.py
), start a terminal and enter command:python manage.py runserver
. Make sure your default python version is Python3, otherwise you need to specify it explicitly:python3 manage.py runserver
- In your browser, enter the following URL: [http://127.0.0.1:8000/editor/]
- You should be able to see the full example here.
- Go to ./editor/templates/index.html This is the template file for full example.
- Find the
note-list.json
file in the./editor/static/editor/json/
folder. It is an example of how my server side code will generate the format of json file. - In the
index.html
page, create a sidebar (you can adjust the width of the editor, if it looks better), display the notes' title as a list, give the title a<a href="path"> </a>
tag, where thepath
is the value ofpath
property in json file.
Requirements:
pip install neomodel django-neomodel
If running Python 3.10, may need to use a virtual environment running Python 3.9 because some parts of neo4j are incompatible with Python 3.10
- Install Neo4j Desktop from here https://neo4j.com/try-neo4j/
- Create a new DBMS in Neo4j Desktop, user="neo4j" password="12345"
- Start the DBMS
- Run
python manage.py install_labels
- Run
python init_test_data.py
script to create some example nodes
- click
New
button to create a new note, the default name for the new note isnew note.md
. - click
Export
to download the note to local - click
Save
to save the note to server - click
Preview
to see the preview of the markdown note - click
choose file
to import a note from local machine - You can rename the note at the textbox
- You can find all the notes in the
Note list
sidebar.
- Please see here for an example JSON file
- @Owen, use this JSON file to generate the subtitle and info window for the note.
- @Daisy, please try to fit it in you database framework. Let me know if there is any problem.