Giter Club home page Giter Club logo

gandalf.api's People

Contributors

alexeybondarenko avatar andrewdryga avatar pavelvesnin avatar samorai avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gandalf.api's Issues

Not able to run the gandalf.api in browser

Hello,

I'm new to Docker. I have successfully installed and using the command docker-compose up I'm able to run the servers too. But when I access the site https://gandalf.dev it is showing This site can’t be reached message in Chrome.
What I have noticed is the volumes are not mapped including the gandalf.api.conf and vendor folder is not created in the container.

How can I fix this issue?

Thanks in advance,
Saneesh

Gandalf Web does not display Variants with Conditions like the Data Shows.

Gandalf Web does not display the conditions for variants in the same order as from the Object or data in MongoDB. Please see the data from MongoDB and compare with screen shot from Gandalf Web. All fields for Rupee should be $is_set, but its taking properties from other fields. Thank you.

"variants" : [
		{
			"title" : "name",
			"description" : "description",
			"default_title" : "You may pass",
			"default_description" : "You may pass",
			"probability" : 0,
			"default_decision" : "You may pass",
			"rules" : [
				{
					"than" : "You are a NEWB",
					"title" : "You are a NEWB",
					"description" : "You are a NEWB",
					"conditions" : [
						{
							"field_key" : "profession",
							"condition" : "$eq",
							"value" : true,
							"_id" : ObjectId("58d3a8de917f1a6d63150fdc")
						},
						{
							"field_key" : "level",
							"condition" : "$eq",
							"value" : false,
							"_id" : ObjectId("58d3a8de917f1a6d63150fdd")
						},
						{
							"field_key" : "key",
							"condition" : "$eq",
							"value" : true,
							"_id" : ObjectId("58d3a8de917f1a6d63150fde")
						},
						{
							"field_key" : "rupee",
							"condition" : "$is_set",
							"value" : true,
							"_id" : ObjectId("58d3a8de917f1a6d63150fdf")
						}
					],
					"_id" : ObjectId("58d3a8de917f1a6d63150fe0")
				},
				{
					"than" : "You are not a WIZARD",
					"title" : "You are not a WIZARD",
					"description" : "You are not a WIZARD",
					"conditions" : [
						{
							"field_key" : "profession",
							"condition" : "$eq",
							"value" : false,
							"_id" : ObjectId("58d3a8de917f1a6d63150fe1")
						},
						{
							"field_key" : "level",
							"condition" : "$is_set",
							"value" : true,
							"_id" : ObjectId("58d3a8de917f1a6d63150fe2")
						},
						{
							"field_key" : "key",
							"condition" : "$is_set",
							"value" : true,
							"_id" : ObjectId("58d3a8de917f1a6d63150fe3")
						},
						{
							"field_key" : "rupee",
							"condition" : "$is_set",
							"value" : true,
							"_id" : ObjectId("58d3a8de917f1a6d63150fe4")
						}
					],
					"_id" : ObjectId("58d3a8de917f1a6d63150fe5")
				},
				{
					"than" : "You do not have the KEY",
					"title" : "You do not have the KEY",
					"description" : "You do not have the KEY",
					"conditions" : [
						{
							"field_key" : "profession",
							"condition" : "$eq",
							"value" : true,
							"_id" : ObjectId("58d3a8de917f1a6d63150fe6")
						},
						{
							"field_key" : "level",
							"condition" : "$eq",
							"value" : true,
							"_id" : ObjectId("58d3a8de917f1a6d63150fe7")
						},
						{
							"field_key" : "key",
							"condition" : "$eq",
							"value" : false,
							"_id" : ObjectId("58d3a8de917f1a6d63150fe8")
						},
						{
							"field_key" : "rupee",
							"condition" : "$is_set",
							"value" : true,
							"_id" : ObjectId("58d3a8de917f1a6d63150fe9")
						}
					],
					"_id" : ObjectId("58d3a8de917f1a6d63150fea")
				}
			],
			"_id" : ObjectId("58d3a8de917f1a6d63150feb")
		}
	],

screen shot 2017-03-23 at 12 08 53 pm

Possible to use different DB?

Can use this with something else than MongoBD? I would prefer PostgreSQL. Will this just work or did you put MongoDB specific code on top of the Laravel DB abstraction library? Thanks!

Website BAD CERTIFICATE

cert expired on main website. sigh. why not use your own rule engine to test for expired cert?

Client and User Management

Hi,

I have been evaluating this project for several days and looking through the code, however, I have been unable to locate any client management. How do I register the UI client user with the API application? I assume user management happens after I can login to the UI which is complaining about invalid_clinet due to not knowing how to manage that data.

Thanks,
Alex

422 Unprocessable Entity error(Validation failed)

Hi All,
My cURL is looks like this for a test rule.

$ curl -u CLIENT_ID:CLIENT_SECRET -H 'X-Application: <applicaiton id>' https://api.gndf.io/api/v1/tables/<some alphanumeric>/decisions \ -d '{"created":8}'

with cURL in PHP it works fine.

But, when I call this from Laravel(GuzzleHttp) the following error is showing.

{"meta":{"code":422,"error":"validation","error_message":"Validation failed"},"data":{"created":["validation.present"]}}

What could be the reason?

Regards,
Saneesh

gandalf.api installation with docker

@AndrewDryga
Hello Guys,
I have used following steps to setup gandalf using docker

  • dcoker-compose up
  • docker exec -it "php-container-id" /bin/ash
  • php artisan migrate --seed
    when i am using php artisan command then i have getting following error -

[Symfony\Component\Debug\Exception\FatalThrowableError] Class 'Barryvdh\LaravelIdeHelper\IdeHelperServiceProvider' not found

I have also run composer install and composer update command but getting same error.

Please help to setup gandalf using docker.

Thanks and Regards
Prince Verma

Error: certificate has expired

Here is a full messages

021-01-07-06:36:34 0|app      | {"message":"Gandalf is started to listen at localhost:8080\n","timestamp":"2021-01-07T06:36:34.603Z","type":"out","process_id":0,"app_name":"app"} 
[STREAMING] Now streaming realtime logs for [all] processes 
2021-09-02-10:08:25 0|app      | {"message":"Gandalf is started to listen at localhost:8080\n","timestamp":"2021-09-02T10:08:25.141Z","type":"out","process_id":0,"app_name":"app"} 
2021-10-01-13:48:44 0|app      | {"message":"Error: certificate has expired\n    at Error (native)\n    at TLSSocket.<anonymous> (_tls_wrap.js:1079:38)\n    at emitNone (events.js:86:13)\n    at TLSSocket.emit (
events.js:185:7)\n    at TLSSocket._finishInit (_tls_wrap.js:603:8)\n    at TLSWrap.ssl.onhandshakedone (_tls_wrap.js:433:38)\n","timestamp":"2021-10-01T13:48:44.065Z","type":"err","process_id":0,"app_name":"app

Do you have a instruction to resolve CERT for Gandalf API app?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.