davidespano / pacpac

Source code for the PACPAC game editor
2 stars 0 forks source link

pacpac

Source code for the PACPAC game editor

Prerequisites

At the first execution, neo4j should prompt you to change the default credentials. Set username and password to, respectively, neo4j and password. If you wish to use different username and password, just modify the default values in the file ./api/config.js with your credentials. DO NOT PUSH ANY CHANGE TO THAT FILE.

Set up

These steps are mandatory before the first execution of the project, and should also be repeated after pulling a new version.

Execution

To execute the project

Now open your browser and go to <http:\localhost:3006>

Create a user

Go to <http:\localhost:3000\docs>, select the user APIs, and register a user with the following info. The body of the POST should be

{
  "username": "username",
  "password": "password"
}

To grant the ownership of the test game, go to <http:\localhost:7474> and run the query

match (n:User) merge (n)-[:OWN_GAME]->(:Game {gameID: '3f585c1514024e9391954890a61d0a04'})

To delete everything in the db, but users and games use

MATCH (n) WHERE NOT n:User AND NOT n:Game DETACH DELETE n