Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Open Source: Strapi v4 - Formula field

Posted on Aug 15 I'm glad to introduce you to the powerful math operations just inside your Headless CMS and to invite you for contributing!A Plugin for Strapi Headless CMS that provides an integration with powerful mathjs library. Complete installation requirements are exact the same as for Strapi itself and could be found in the official Strapidocumentation.Before installing Strapi, the following requirements must be installed on your computer:ORAfter successful installation you could re-build the Strapi instance. You could use the next commands (default) insideyour Strapi project:As a next step you must configure the plugin following the official Strapi documentation.We need to enable the plugin by adding it to the Strapi plugin config file located in ./config/plugins.js of your Strapi project. If this file does not exist yer, you have to create it manually.Copy and paste the following config into you ./config/plugins.js file:My congratulation 😄! You have successfully installed and configured the Strapi Plugin Field Formula.Math.js is an extensive math library for JavaScript and Node.js. It features a flexible expression parser with support for symbolic computation, comes with a large set of built-in functions and constants, and offers an integrated solution to work with different data types like numbers, big numbers, complex numbers, fractions, units, and matrices. Powerful and easy to use.Here is some examples, but to use this plugin on the full 100%, you have to read the official Mathjs documentation, and especially the expressions part as formula is the same thing as mathjs.evaluate method 🤫Function evaluate accepts a single (in our case) expression or an array with expressions as the first argumentand has an optional second argument containing a scope with variables and functions. The scope can be a regularJavaScript Object, or Map (JSON in our case). The scope will be used to resolve symbols, and to write assignedvariables or function.See the CONTRIBUTING.md document.Templates let you quickly answer FAQs or store snippets for re-use. Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink. Hide child comments as well Confirm For further actions, you may consider blocking this person and/or reporting abuse Gökhan Taşkan - Aug 2 José Pablo Ramírez Vargas - Aug 3 Gabriel C. Troia - Aug 1 Alexander Opalic - Aug 2 Once suspended, borysshulyak will not be able to comment or publish posts until their suspension is removed. Once unsuspended, borysshulyak will be able to comment and publish posts again. Once unpublished, all posts by borysshulyak will become hidden and only accessible to themselves. If borysshulyak is not suspended, they can still re-publish their posts from their dashboard. Note: Once unpublished, this post will become invisible to the public and only accessible to Boris Shulyak. They can still re-publish the post if they are not suspended. Thanks for keeping DEV Community safe. Here is what you can do to flag borysshulyak: borysshulyak consistently posts content that violates DEV Community's code of conduct because it is harassing, offensive or spammy. Unflagging borysshulyak will restore default visibility to their posts. DEV Community — A constructive and inclusive social network for software developers. With you every step of your journey. Built on Forem — the open source software that powers DEV and other inclusive communities.Made with love and Ruby on Rails. DEV Community © 2016 - 2023. We're a place where coders share, stay up-to-date and grow their careers.



This post first appeared on VedVyas Articles, please read the originial post: here

Share the post

Open Source: Strapi v4 - Formula field

×

Subscribe to Vedvyas Articles

Get updates delivered right to your inbox!

Thank you for your subscription

×