tipogi / init-nestjs-neo4j

Bored of creating nestJS and Neo4J skeleton, clone and you are ready to go πŸš€

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Nest Logo

Configuration

That boilerplate uses NestJS, node.js framework as a backend and the persistence layer is made with Neo4J, graph database. Before run the boilerplate with npm, we have to set up few things:

Add configuration file

When we clone the repository, we cannot find the database credentials because that variables, have to be private. Add the development environment credentials (development.yml) following that commands. That file has to have the same interface as utils/environment/internaces/environment.interface.ts

cd src
mkdir config/environment
vim config/environment/development.yml

Start docker container

You can create in Neo4J Desktop the database but in that case, we are going to spin up a docker container and access it from the desktop (localhost:7474) in remote way. Also possible from Neo4J Desktop. Get the docker-compose file from docker.templates and fill up with your database credentials. IMPORTANT: The docker image that we use in that case, it is free one so database name and username has to be neo4j

# Create docker network
docker network create sandbox-network

Ready?

If your configuration is ready, start the development server:

npm run start:dev

About

Bored of creating nestJS and Neo4J skeleton, clone and you are ready to go πŸš€


Languages

Language:TypeScript 96.7%Language:JavaScript 3.3%