This walkthrough assumes that you already have Python 3.6 or higher installed
- You will need to download Neo4j Desktop from https://neo4j.com/download/
- Run Neo4j Desktop
- Create a new project inside Neo4j Desktop
- Click the area that says “Add Graph”
- Click the button that says “Create a Local Graph”
- Enter a name and password for the graph
- Set the version of Neo4j to 3.5.3 (You may have to download it)
- Click the button that says “Create”
- Find the graph you just created and press “Start”
- Wait for the graph to start. It will change to “Stop” when it is running.
- Download PyCharm Community Edition from https://www.jetbrains.com/pycharm/download/ (skip this step if you already have it installed)
- Run PyCharm
- Wait for the window titled “Welcome to PyCharm” to open
- Click the area that says “Check out from Version Control”
- Select Git from the popup menu
- Enter https://github.com/Tyjch/nlpedia-website.git in the URL section
- Enter the directory you want to use for this project
- Press “Clone”
- Select “Yes” when PyCharm asks if you want to open this project
- In the menu bar in the top left, select “PyCharm” and then “Preferences”
- In the pop-up window, click the text that begins with “Project:” and then click “Project Interpreter”
- Click the gear icon in the top right of the pop-up window and then click “Add…”
- In the window titled “Add Python Interpreter”, find the dropdown menu labeled “Base interpreter:” and click it
- Select a Python version equal to or higher than 3.6 and then press “OK”
- Press “Okay” again in the underlying pop-up window
- On the left hand side in the project directory of PyCharm, double click to open the file titled “requirements.txt”
- After a few seconds, an alert will appear near the top of the screen saying that some dependencies are not fulfilled
- Click “Install dependencies”
- Wait for all of them to download
- To use your local Neo4j as the database for this project, change
neo4j_user
andneo4j_password
inside ofconfig.ini
- To use a remote GrapheneDB database, change
graphene_uri
,graphene_user
, andgraphene_password
inside ofconfig.ini
- This requires
py2neo
v3 rather than v4 - You also need to change
is_local
in the same file toFalse
- This requires
- At the bottom of PyCharm, click the button that says “Terminal”
- Copy and paste the following into the box that opens:
python -m spacy download en
- Press enter
- Wait for it to finish downloading
- On the left hand side in the project directory of PyCharm, double click to open the file titled “run.py”
- Expand the directory labeled "nlpedia" and double click on "models.py"
- Change the string of "graphene_pw" to the password you used to create the Neo4j graph earlier
- Right click in the file that opens and select “Run ‘run’”
- A box will appear at the bottom of PyCharm
- After a few seconds, this text “Running on http://127.0.0.1:5000/ (Press CTRL+C to quit)” will appear
- Click on http://127.0.0.1:5000/
- The web application will open in your default browser