Trying out Neo4j with Python
Copy your SQL dump if you have any.
cp -ip /path/to/your/dump.sql ./mysql/docker-entrypoint-initdb.d
Follow this procedure if you are willing to develop in your docker environment.
sudo -- sh -c "echo 127.0.0.1\tmysql >> /etc/hosts"
sudo -- sh -c "echo 127.0.0.1\tneo4j >> /etc/hosts"
sudo killall -HUP mDNSResponder
make stop up
make stop
Follow this procedure if you are willing to develop in your local host environment.
After installation/configuration of anyenv:
anyenv install pyenv
pyenv install $(cat ./backend/.python-version)
Follow the document for poetry to install.
Install required modules for the app.
cd backend
poetry env use $(pyenv which python)
make install
cp -ip ./backend/.env.dev ./backend/.env
make db-up
cd backend
make dev
Configure your .env
to match deployment environment variables.
Execute the command below. (This will take a while...)
cd backend
poetry run provision:graph