Regarding single doc for self hosted and API documentation

Hi Hillel, Hope you are doing well. This is Ranjeet, and we are planning to use invoiceninja with our system, I do have explored the invoiceninja and it’s pretty much helpful in our our system in terms of flexibility and API based data transactions. While exploring the invoiceninja I came across some things like I did not found in single documentation for self hosted version installation and also for API documentation. So we need to have some suggestions from your side which version is stable version and can you provide single documentation for API, as we are planning to integrate APIs as well. my

Thanks & Regards,

Hi,

v5 is stable

The docs are here: Build, Collaborate & Integrate APIs | SwaggerHub

If you have any questions let us know

Thanks for the quick reply.
I am trying for APIs but its not working on demo.invoiceninja.com.

Its getting server error. and also API token are expiring

The demo site refreshes every hour, if you plan to develop against the API you may want to setup a selfhost v5 install.

Can you post the details for the errors you’re seeing?

Hi,Would API work for cloud subscription?

Hi,
Please send docker installation guide for self hosted V 5.

Our hosted platform is still running v4

so which medium is good for self hosted V5, docker or other medium?

They’re all good, we don’t have a preference

hi @hillel , achintye here, when doing a docker run, we are getting this error:
In Connection.php line 678:

  SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from inform  
  ation_schema.tables where table_schema = ninja and table_name = accounts an  
  d table_type = 'BASE TABLE')                                                 
                                                                               

In Exception.php line 18:
                                                    
  SQLSTATE[HY000] [2002] No such file or directory  
                                                    

In PDOConnection.php line 38:
                                                    
  SQLSTATE[HY000] [2002] No such file or directory  

getting the same when generating the app-key.

We haven’t been able to find much around this on the forums/stackoverflow, if you could guide us on this, would be great!

It may help to run php artisan migrate

Hi @hillel , trying with connecting localhost’s mysql with docker. This is throwing same error as

In Connection.php line 678:
  SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables 
  where table_schema = ninja and table_name = accounts and table_type = 'BASE TABLE').

Could you please provide solution on this.

Thanks & Regards,

@hillel Awaiting reply.

Hi @hillel ,

Find herewith the entire error stack trace

In Connection.php line 678:

SQLSTATE[HY000] [2002] No such file or directory (SQL: select * from information_schema.tables
where table_schema = ninja and table_name = accounts and table_type = ‘BASE TABLE’)

In Exception.php line 18:

SQLSTATE[HY000] [2002] No such file or directory

In PDOConnection.php line 38:

SQLSTATE[HY000] [2002] No such file or directory

@david, do yo have any ideas?

Are you using our official dockerfile ? or are you building your own docker file?