We can use the following command to start the Neo4j Container.
We can use the following command to start the Neo4j Container.
docker run \
--name neo4j \
-p 7474:7474 -p 7687:7687 \
-d \
-v $HOME/neo4j/data:/data \
-v $HOME/neo4j/logs:/logs \
-v $HOME/neo4j/import:/var/lib/neo4j/import \
-v $HOME/neo4j/plugins:/plugins \
--env NEO4J_AUTH=neo4j/test \
neo4j:4.4.9-community
And the image is started smoothly in MacOS M1.
The list of Neo4j docker images are available in: https://hub.docker.com/_/neo4j/tags
version: '3'
services:
neo4j:
image: neo4j:4.4.9-community
network_mode: "bridge"
ports:
- "7474:7474"
- "7687:7687"
volumes:
- $HOME/neo4j/data:/data
- $HOME/neo4j/logs:/logs
- $HOME/neo4j/import:/var/lib/neo4j/import
- $HOME/neo4j/plugins:/plugins
environment:
- NEO4J_AUTH=neo4j/test
We can also starts the neo4j service by using the following command:
docker-compose up
To run the service in background, we can pass the -d
flag (detached
mode)
docker-compose up -d
You may also change the location of the database to current folder by changing the volume.
version: '3'
services:
neo4j:
image: neo4j:4.4.9-community
network_mode: "bridge"
ports:
- "7474:7474"
- "7687:7687"
volumes:
- ./neo4j/data:/data
- ./neo4j/logs:/logs
- ./neo4j/import:/var/lib/neo4j/import
- ./neo4j/plugins:/plugins
environment:
- NEO4J_AUTH=neo4j/test
We can run the following cypher query in http://localhost:7474/browser/ to check if we have an empty database.
MATCH (m)
RETURN m
To create a node, we can use the following cypher query:
CREATE (n:Node)
RETURN n
And one node is created.
Now when we query all nodes, we can see the same result.
MATCH (m)
RETURN m
Calpa 日常幫助客戶構建一站式網站應用,手機應用,雲端架構
2023 年 9 月,Calpa 應邀出席韓國 Korea Blockchain Week 2023,新加坡 TOKEN 2049。十二月份,Calpa 將參加 Taipei Blockchain Week Hackathon。
Calpa 擅長運用各種前沿技術,包括 TypeScript、React.js 和 Vue.js,開發具有 Responsive Web Design 的網站。另外,他透過運用 aws-cdk 和 TypeScript 技術的融合,實現了基於雲端的「基礎即代碼」(Infrastructure as Code)部署策略,建立了多套高效且具有可伸縮性的全端架構。
同時,Calpa 積極參與各個社群,活躍於香港和台灣的開源社區,分享前沿知識。他曾在 2019 年的香港開源大會中擔任重要講者,為聽眾提供寶貴的工作經驗和深刻見解。此外,Calpa 在 GitHub 上公開分享了個人博客程式碼,已獲得超過 300 顆星星和 60 個分支。