Neo/place can easily be run locally. To run neo/place you need to have Node.js and a running Neo4j database.
- Create a
.env
file with the neo4j credentials:
NEO_PLACE_DB_URL=bolt://localhost:7687
NEO_PLACE_DB_USER=neo4j
NEO_PLACE_DB_PASSWORD=neo4j
- Run
npm install
- Run
npm run start:dev
- Go to http://localhost:4000/
By default, events will only be sent to subscribers of the same server, making it impossible to horizontally scale the server (more info here). You can use AMQP as a broker if you plan on hosting multiple servers:
- Add
NEO_PLACE_AMQP_URL
to.env
file with the full URL to your AMQP server (including user and password):
NEO_PLACE_AMQP_URL=amqp://guest:guest@localhost
- (optional) Run
docker-compose up rabbitmq
to run a local RabbitMQ broker
This deployment assumes a valid app engine setup in gcloud
- Have a
.env
file with the required credentials as described above - Run
bash deploy.sh