https://github.com/stevenacoffman/worldofworkcraftbackend
https://github.com/stevenacoffman/worldofworkcraftbackend
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/stevenacoffman/worldofworkcraftbackend
- Owner: StevenACoffman
- License: mit
- Created: 2015-03-05T15:03:18.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2015-03-07T02:36:49.000Z (over 11 years ago)
- Last Synced: 2026-03-25T21:00:27.455Z (3 months ago)
- Language: Java
- Size: 219 KB
- Stars: 1
- Watchers: 10
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# WorldOfWorkCraftBackend
This is the acompanying backend for the World Of WorkCraft from the 2015 University of Michigan "Hacks with Friends" Hackathon competition.
### Step 1: Install neo4j with homebrew
```bash
brew install neo4j
```
Step 2: Start neo4j
```bash
neo4j start
```
### Step 3: Connect to http://localhost:7474/browser/
### Step 4: You could do either:
1. Copy and paste /WorldOfWorkCraftBackend/src/main/Cypher.cql source code then execute the code.\
> ****OR****
2. Download it as a file and drag and drop to the saved script section
> (see screenshot below). You’ll need Chrome to do the drag and
> drop. To execute, click on the play button next to “Use Chrome to
> drop and drag….”
To view all the nodes and relationships, run:
```
match (l) return l;
```
### Step 5: install tomcat with homebrew
```bash
brew install tomcat
```
### Step 6: start tomcat
```bash
/usr/local/opt/tomcat/libexec/bin/startup.sh
```
### Step 7: build package
```bash
mvn clean install; mvn tomcat7:redeploy
```
### Test if things are working
Make GET REST request to
[http://localhost:8080/worldofworkcraft/challenges/bbunny](http://localhost:8080/worldofworkcraft/challenges/bbunny)
### Only if you need to start over:
**==Delete ==**
**--Delete everything**
```
MATCH (a)
WITH a
LIMIT 10000
OPTIONAL MATCH (a)-[r]-()
DELETE a,r
RETURN COUNT(\*)
```
**--Delete entity and relationship: Delete **Neo4j Challenge** entity
and its relationship**
```
match (c:Challenge {name:"Neo4j Challenge"})-[r]-() delete c,r;
```