docs: update Memgraph docs (#20736)

- **Description:** Memgraph Platform is being run differently now so I
updated this (I am DX engineer from Memgraph).
pull/20766/head
Katarina Supe 5 months ago committed by GitHub
parent 6a0d44d632
commit dc61e23886
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -19,26 +19,22 @@
"\n", "\n",
"To complete this tutorial, you will need [Docker](https://www.docker.com/get-started/) and [Python 3.x](https://www.python.org/) installed.\n", "To complete this tutorial, you will need [Docker](https://www.docker.com/get-started/) and [Python 3.x](https://www.python.org/) installed.\n",
"\n", "\n",
"Ensure you have a running `Memgraph` instance. You can download and run it in a local Docker container by executing the following script:\n", "Ensure you have a running Memgraph instance. To quickly run Memgraph Platform (Memgraph database + MAGE library + Memgraph Lab) for the first time, do the following:\n",
"\n",
"On Linux/MacOS:\n",
"```\n", "```\n",
"docker run \\\n", "curl https://install.memgraph.com | sh\n",
" -it \\\n",
" -p 7687:7687 \\\n",
" -p 7444:7444 \\\n",
" -p 3000:3000 \\\n",
" -e MEMGRAPH=\"--bolt-server-name-for-init=Neo4j/\" \\\n",
" -v mg_lib:/var/lib/memgraph memgraph/memgraph-platform\n",
"```\n", "```\n",
"\n", "\n",
"You will need to wait a few seconds for the database to start. If the process is completed successfully, you should see something like this:\n", "On Windows:\n",
"```\n", "```\n",
"mgconsole X.X\n", "iwr https://windows.memgraph.com | iex\n",
"Connected to 'memgraph://127.0.0.1:7687'\n",
"Type :help for shell usage\n",
"Quit the shell by typing Ctrl-D(eof) or :quit\n",
"memgraph>\n",
"```\n", "```\n",
"\n", "\n",
"Both commands run a script that downloads a Docker Compose file to your system, builds and starts `memgraph-mage` and `memgraph-lab` Docker services in two separate containers. \n",
"\n",
"Read more about the installation process on [Memgraph documentation](https://memgraph.com/docs/getting-started/install-memgraph).\n",
"\n",
"Now you can start playing with `Memgraph`!" "Now you can start playing with `Memgraph`!"
] ]
}, },
@ -89,7 +85,7 @@
"id": "95ba37a4", "id": "95ba37a4",
"metadata": {}, "metadata": {},
"source": [ "source": [
"We're utilizing the Python library [GQLAlchemy](https://github.com/memgraph/gqlalchemy) to establish a connection between our Memgraph database and Python script. To execute queries, we can set up a Memgraph instance as follows:" "We're utilizing the Python library [GQLAlchemy](https://github.com/memgraph/gqlalchemy) to establish a connection between our Memgraph database and Python script. You can establish the connection to a running Memgraph instance with the Neo4j driver as well, since it's compatible with Memgraph. To execute queries with GQLAlchemy, we can set up a Memgraph instance as follows:"
] ]
}, },
{ {

Loading…
Cancel
Save