- Getting started
- Clone the latest version
- Install dependencies
- Define Enviormental Variables
- Run the application
- Tech Stack
- Directory Layout
- Contributing
- License
Creates several functions to query graph database Neo4j for 'friends of friends' relationships.
Start by cloning the latest version of the Fitomo/Fitomo-User-Generation and on your local machine by running:
$ git clone https://github.com/Fitomo/Friends-Graph.git
$ cd Friends-Graph
From within the root directory run the following command to install all dependencies:
$ npm install
Define the environmental variable DB_URL to equal the URL of the neo4j DB
$ npm start
Access the application at the host's port 5000
- Node
- Express
- Neo4j
├── /node_modules/ # 3rd-party libraries and utilities
├── /server/ # Server source code
│ ├── /controllers/ # Manage API calls and request handling
│ ├── /db/ # Database relate functions
│ ├── /routes/ # Handle all routing
│ ├── /server.js # Core server file
├── /testData/ # Test data related to users/friends
├── Dockerfile # Docker configuration
├── package.json # List of 3rd party libraries and utilities to be installed
- Fork the repo.
- Clone it to your local computer
- Cut a namespaced feature branch from master and name it appropriately
- Make commits and prefix each commit with the type of work you were doing
- BEFORE PUSHING UP YOUR CHANGES, rebase upstream changes into your branch, fix any potential conflicts, and then push to your fork.
- Submit a pull request directly to the master
- Someone else will perform code review to keep codebase clean
- Fix any errors or issues raised by the reviewer and push the fixes as a single new commit
- Repeat until the pull request is merged.
M.I.T