ChristianRuiz / Conscience

Portal and mobile App for the Conscience LARP, inspired in the Westworld tv series

Home Page:http://conscience.notonlylarp.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Conscience

There are two main Apps:

  • Aleph Site: WebApp for the company to manage hosts and employees
  • Hosts Mobile App: React Native App for iOS and Android that is connected to the Aleph Site

Frontend configuration

You need to browse a cmd to "\client" and run:

$ npm install
$ npm run build

Optionally you can run the watcher to avoid building multple times:

$ npm run watch

Every time the GraphQL schema is updated on server side, you need to run:

$ npm run schema
$ npm run build

Backend configuration

You need to open the "Conscience.sln" with Visual Studio 2015 and build the entire solution. It will restore the NuGet packages and build the project. Once build, you can configure the Conscience.Web proejct to run with the local IIS on "http://localhost" or you can enable the IIS Express and let Visual Studio configure and start it on F5.

The urls on the environment:

Url Description
/GraphQL GraphiQL environment to test queries
/Login Login page
/ SPA (work in progress)

GraphQL

To start testing GraphQL you need login. You can do it either by using the UI or performing a login mutation on the GraphiQL test environment ("/GraphQL"):

mutation Login($userName: String!, $password: String!) {
  accounts
  {
    login(userName:$userName, password:$password)
    {
      id
    }
  }
}

With Query Variables:

{"userName": "arnold", "password": "123456" }

Once logged, you can start testing some queries or logout using the GraphiQL interface or the UI:

query GetAll {
  employees {
    getAll {
      account {
        userName,
        id
      },
      id
    }
  }
}
query EmployeesQuery 
{  
	employees { ...F0  }
} 

fragment F0 on EmployeeQuery 
{  
	getAll 
	{    
		account 
		{      
			userName,      
			id    
			},    
		id  
	}
}
mutation Logout {
  accounts
  {
    logout
    {
      id
    }
  }
}

About

Portal and mobile App for the Conscience LARP, inspired in the Westworld tv series

http://conscience.notonlylarp.com/


Languages

Language:C# 46.7%Language:JavaScript 42.4%Language:CSS 9.5%Language:Objective-C 0.7%Language:Java 0.5%Language:Python 0.3%Language:ASP 0.0%