clariteia / microservice Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Initial version example:
DEFAULT_CONF_PATH = "tests/config.yml"
@app.command("start")
def start_microservice(conf: Optional[str] = typer.Argument(DEFAULT_CONF_PATH)):
"""Launch the microservice."""
config = MinosConfig(path=Path(conf))
try:
launcher = EntrypointLauncher(config)
launcher.launch()
except Exception as e:
typer.echo(f"Error starting microservice: {str(e)}")
raise typer.Exit(code=1)
typer.echo("Microservice is up and running!\n")
Run example:
poetry run microservice start
or
poetry run microservice start tests/config.yml
You can run commands directly example:
(microservice_template) ➜ microservice_template git:(typer) poetry shell
Spawning shell within /Users/vladyslavfenchak/.pyenv/versions/3.9.1/envs/microservice_template
➜ microservice_template git:(typer) . /Users/vladyslavfenchak/.pyenv/versions/3.9.1/envs/microservice_template/bin/activate
(microservice_template) ➜ microservice_template git:(typer) microservice start
Microservice is up and running!
(microservice_template) ➜ microservice_template git:(typer) microservice start tests/config.yml
Microservice is up and running!
In order to avoid that unexpected files are committed, I propose to extend the excluded files adding the following lines:
# lmdb database
*.mdb
# Sphinx Api Documentation
docs/api
This issue was inspired by the following Pull Request: Clariteia/minos_microservice_networks#137
This issue is a clone of: Clariteia/minos-pypackage#12
The Microservice template must have a configuration file with the default configuration parameters
Create a Docker image to run the microservice.
Provide a docker-compose file to get the dependencies up.
The Docker image must be small in size.
Add an entrypoint for minos microservice start:
minos run
Library to check
https://python-dependency-injector.ets-labs.org/index.html
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.