mesg-foundation / js-sdk

Javascript mono-repo with all the tools to interact with MESG
https://mesg.com
4 stars 4 forks source link

Dev command for MESG Framework #198

Closed antho1404 closed 4 years ago

antho1404 commented 4 years ago

A proposition to normalize all the development of apps in mesg. The idea is to have a command dev that will automatically deploy your processes/services based on a specific file organization.

Here is an idea of an organization.

├── .env
├── processA.yml
├── processB.yml
├── processX.yml
├── services
│   ├── service-name-1
│   │   ├── mesg.yml
│   │   ├── ...other files
│   ├── service-name-2
│   │   ├── mesg.yml
│   │   ├── ...other files

A command dev would read the services directory and compile/deploy each service. It will also deploy all the .yml in the root of the project and inject the environment variable contained in the .env.

Note for later

With this in mind, we can also have a "service importer", the same way that you can import a library with npm with npm install xxx we can have a command link/add/install that will download a service and put it in the services directory.

We might add these services in a gitignore or instead copy them in a node_module/vendor like a directory that users will choose to version or no while still able to have their own local services in the services directory.

NicolasMahe commented 4 years ago

I really like this concept. I don't have much to add for now ;)

blackinno commented 4 years ago

I agree with this concept and also it would be nice if we can have a command like mesg-cli service:import <NAME of Service> as @antho1404 said because it easier than to find services in GitHub repo.

github-actions[bot] commented 4 years ago

Please update the CHANGELOG of the associated library for your Pull Request to be accepted