Markus Schneider

Micro-Services and FileMaker

Discussion created by Markus Schneider on Jun 16, 2018
Latest reply on Jun 18, 2018 by beverly

There are some threads about micro-services in this forums and very good tutorials written by fmpdude

 

It looks like an incredible, terrific, powerfull toolbox

 

on the other hand, I’m puzzeled

- JavaScript might not be the most powerfull variant, so I was looking into python

- installing a newer version of python.. why doesn’t the one fit the needs that comes with macOS?

- installing... all via the terminal. The help pages found on the web seem all to be no ‘entry-level’, not for dummies

— where to download, where to save, how to install..

— pip... seems to be the phyton installation program..

— flask..

— postman...

— can something go wrong, can I destroy data on my MacBook?

— how to use a micro-service when on another computer, for example a customer’s machine?

 

Are there better sources I did not find? Don’t ask me what pops up when google for ‘postman’ (-:

 

Is there a step to step guide for beginners, dummies?

 

-

 

the doc for flask says

Flask depends on the Jinja template engine and the Werkzeug WSGI toolkit. The documentation for these libraries can be found at:

-> and then links to 2 other sources I’ve never heard of..

 

I got the feeling that beeing on another planet..

 

Installing the python thing:

 

Dependencies

These distributions will be installed automatically when installing Flask.

  • Werkzeug implements WSGI, the standard Python interface between applications and servers.
  • Jinja is a template language that renders the pages your application serves.
  • MarkupSafe comes with Jinja. It escapes untrusted input when rendering templates to avoid injection attacks.
  • ItsDangerous securely signs data to ensure its integrity. This is used to protect Flask’s session cookie.
  • Click is a framework for writing command line applications. It provides the flask command and allows adding custom management commands.

Optional dependencieshttp://flask.pocoo.org/docs/1.0/installation/#optional-dependencies

These distributions will not be installed automatically. Flask will detect and use them if you install them.

 

Virtual environmentshttp://flask.pocoo.org/docs/1.0/installation/#virtual-environments

Use a virtual environment to manage the dependencies for your project, both in development and in production.

What problem does a virtual environment solve? The more Python projects you have, the more likely it is that you need to work with different versions of Python libraries, or even Python itself. Newer versions of libraries for one project can break compatibility in another project.

Virtual environments are independent groups of Python libraries, one for each project. Packages installed for one project will not affect other projects or the operating system’s packages.

Python 3 comes bundled with the venv module to create virtual environments. If you’re using a modern version of Python, you can continue on to the next section.

If you’re using Python 2, see Install virtualenv first.

 

 

üürgs

 

I can clearly see the benefits of a GUI..

Outcomes