![]() ![]() The average API request follows this path into the application. The controller methods then describe all the entry points into each domain of the application, ie InvoiceController / QuoteController When inspecting functionality of the API, the best place to start would be in the routes/api.php file which describes all of the availabe API endpoints. The API and client portal have been developed using Laravel if you wish to contribute to this project familiarity with Laravel is essential. Sudo nano /usr/share/nginx/invoiceninja/.- To setup your configuration if you did not load sample data. # you only need to edit one line (or two if you have a revers proxy) everything else we can setup later in the webgui setup ![]() Sudo cp /usr/share/nginx/invoiceninja/.env.example /usr/share/nginx/invoiceninja/.env Sudo apt install libgbm-dev libxshmfence-dev ca-certificates fonts-liberation libappindicator3-0.1-cil libasound2 libatk-bridge2.0-0 libatk1.0-0 libc6 libcairo2 libcups2 libdbus-1-3 libexpat1 libfontconfig1 libgbm1 libgcc-s1 libglib2.0-0 libgtk-3-0 libnspr4 libnss3 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 libxtst6 lsb-release wget xdg-utils # if you wanna use snappdf instead of the cloud service phantomPDF, we need some # Right click the link to the zip file and copy the download link Sudo mkdir /usr/share/nginx/invoiceninja & cd /usr/share/nginx/invoiceninja # delete the nginx default site and reload. # make sure NGINX is running and not apache # As of march 2022, Ubuntu still uses php7.4 and you don't need to change anything. # If php7.4 is not the used php version anymore, you need to check the FastCGI socket path. htaccess files, if Apache's document root # as directory, then fall back to displaying a 404.įastcgi_pass unix:/run/php/ # First attempt to serve request as file, then #gzip_proxied no-cache no-store private expired auth ![]() #gzip_types application/javascript application/x-javascript text/javascript text/plain application/xml application/json # Add index.php to the list if you are using PHP Root /usr/share/nginx/invoiceninja/public # Self signed certs generated by the ssl-cert package # Read up on ssl_ciphers to ensure a secure configuration. # Note: You should disable gzip for SSL traffic. # Please see /usr/share/doc/nginx-doc/examples/ for more detailed examples. # available underneath a path with that package name, such as /drupal8. # applications, such as Drupal or Wordpress. # This file will automatically load configuration files provided by other # leave it as reference inside of sites-available where it will continue to be # In most cases, administrators will remove this file from sites-enabled/ and # of Nginx configuration files in order to fully unleash the power of Nginx. # You should look at the following URL's in order to grasp a solid understanding GRANT ALL PRIVILEGES ON ninjadb.* TO You should see Query OK, 0 rows affected # give all permissions for to the local ninja user to access ninjadb # You should see Query OK, 0 rows affected # create the user ninja and set a Password ![]() # You should see Query OK, 1 row affected # you should see MariaDB > on the left of your cursorĬREATE SCHEMA `ninjadb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci You should see "Thanks for using MariaDB" # Enter, insert a password for the root account, repeat, Enter, Enter, Enter, Enter. Use default values written in capital letters # This command will take you through a guided wizard to initialize the SQL database. You should see something like active: active (running) will not work you need to use http instead of https for now! # if we visit, you should see a running Apache page. Sudo apt install php php- mariadb-server mariadb-client curl git nginx vim composer -y # do we really need curl, git, vim, maridb-client? # You can also find this and report a bug on # default installation of a InvoiceNinja instance on Ubuntu I am not a native English speaker and will spell check it in the future or you guys help me # This is a basic tutorial for a I like this forum but I think github is better suited to open bug reports than here and it is simpler for me to keep it up to date. PDF creation with snappdf works, but the optional supervisor part is not done yet. I only tested this behind a reverse proxy and would love to hear some feedback from you. I wrote a basic tutorial for Ubuntu 20.04.04 LTS and Ninja v5. After almost a year and a troubled Debian installation, I gave Invoice Ninja v5 on Ubuntu another try ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |