Skip to content

hubertsuprunowicz/eat-me

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

eat-me

About

One of the goals of the work is to develop an interactive web application that works using the GraphQL query language. The personal assumption was to create software, which would be the answer to a rushing society where no doubt Tinder was the inspiration - but the idea was not people-to-people contacts, but rather gastronomy, where you can quickly and easily choose your favorite dishes and share yours.

recipes register profile messages create-recipe watches

Dependencies

  • Node v10.16.0 (with JS)
  • Npm 6.9.0
  • Neo4j 4.0.3
  • React (with TS 3.7)
  • Apollo
  • GraphQL

Build and run

Neo4j

  1. Open Neo4j Desktop
  2. Add new project
  3. Start Project
    1. Install APOC plugin via Add Plugin
    2. Click play button
    3. Set password
    4. Click Open with Neo4j Browser
    5. Initial username is neo4j
  4. Data import (optional)
    1. Open Settings view through three dots and Manage button in Neo4j Desktop
    2. Add at the end of the file apoc.import.file.enabled=true
    3. Move all.graphml file from backend folder to dbms.directories.import (More information), i.e %NEO4J_FOLDER\neo4jDatabases\database-x\installation-x\import
    4. Write CALL apoc.import.graphml("file://all.graphml", {}) in Neo4j Browser "Terminal"

You have successfuly imported data :) Write MATCH (n) RETURN n for schema details

neo4j_graph

Terminal things

Backend
  cd backend
  npm install
  touch .env

Required .env data:

NEO4J_PASSWORD=*your neo4j password*
JWT_SECRET=*your jwt secret*

Start server

node app
Frontend
 cd frontend
 npm install
 npm run start
Electron
cd electron
npm install
npm run dist

wait...

build/win-unpacked/eat-me.exe

License

This project is licensed under the MIT License - see the License File for details