Skip to content

maxdemarzi/grittier_ext

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

grittier_ext

A Neo4j Based Twitter Clone Backend

Codeship Status for maxdemarzi/grittier_ext

Coverage Status

Instructions

  1. Build it:

     mvn clean package
    
  2. Copy target/gritter-1.0-SNAPSHOT.jar to the plugins/ directory of your Neo4j server.

  3. Configure Neo4j by adding a line to conf/neo4j.conf:

     dbms.unmanaged_extension_classes=com.maxdemarzi=/v1
    
  4. Start Neo4j server.

  5. Create the Schema:

     :POST /v1/schema/create
    
  6. API:

     :GET    /v1/users/{username}   
     :GET    /v1/users/{username}/profile   
     :POST   /v1/users {username:'', password:'', email:'', name:''}
     :GET    /v1/users/{username}/followers
     :GET    /v1/users/{username}/following
     :POST   /v1/users/{username}/follows/{username2}
     :DELETE /v1/users/{username}/follows/{username2}
     :GET    /v1/users/{username}/posts
     :POST   /v1/users/{username}/posts {status:''}
     :PUT    /v1/users/{username}/posts/{time} {status:''}
     :POST   /v1/users/{username}/posts/{username2}/{time}
     :GET    /v1/users/{username}/likes
     :POST   /v1/users/{username}/likes/{username2}/{time}
     :DELETE /v1/users/{username}/likes/{username2}/{time}
     :GET    /v1/users/{username}/blocks
     :POST   /v1/users/{username}/blocks/{username2}
     :DELETE /v1/users/{username}/blocks/{username2}
     :GET    /v1/users/{username}/mentions
     :GET    /v1/users/{username}/timeline
     :GET    /v1/users/{username}/recommendations/friends
     :GET    /v1/users/{username}/recommendations/follows
     :GET    /v1/tags
     :GET    /v1/tags/{tag}
     :GET    /v1/search&q=term
     :GET    /v1/search/latest
    
  7. Query Parameters:

     limit=25 or any whole number
     since=<a number representing a date in linux epoc time>
     See https://www.epochconverter.com/
    

About

A Neo4j Based Twitter Clone Backend

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Languages