Skip to content

Commit 25aa161

Browse files
authored
Merge pull request #76 from minos-framework/0.1.x
0.1.x
2 parents 551d65b + ebb20f7 commit 25aa161

File tree

12 files changed

+33
-338
lines changed

12 files changed

+33
-338
lines changed

β€ŽREADME.mdβ€Ž

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,51 @@ structure, you'll get your microservices up and running as fast as you've coded
2121
First, we need to create a project to host our microservices
2222

2323
```shell
24-
minos new project sample_project
25-
cd sample_project/
24+
minos new project testproject
25+
cd testproject/
2626
```
2727

28-
We need to set some services that our project needs
28+
Our project has dependencies from services that we need to set
2929

3030
```shell
3131
minos set database postgres
3232
minos set broker kafka
33-
minos set api-gateway minos
3433
minos set discovery minos
34+
minos set api-gateway minos
3535
```
3636

37-
Once we've gone through all of these steps, the project is ready to accept a new microservice!
37+
Now we can start these services using Docker
38+
39+
```shell
40+
docker-compose up -d
41+
```
42+
43+
Once we've the dependencies set, the project is ready to get a new microservice!
3844

3945
```shell
4046
cd microservices/
41-
minos new microservice foo
47+
minos new microservice testmicroservice
48+
```
49+
50+
We're almost there! We now to create the microservice's databases
51+
52+
```shell
53+
docker-compose exec postgres psql -U minos -tc 'CREATE database testmicroservice_db'
54+
docker-compose exec postgres psql -U minos -tc 'CREATE database testmicroservice_query_db'
55+
```
56+
57+
It's time to deploy our microservice
58+
59+
```shell
60+
cd ..
61+
docker-compose up -d microservice-testmicroservice
62+
```
63+
64+
You can test the default endpoints through the `api-gateway` using
65+
66+
```shell
67+
curl localhost:5566/testmicroservices
68+
curl -X POST localhost:5566/testmicroservices
4269
```
4370

4471
Time to start coding! Yes, already!

β€Žminos/cli/api/__init__.pyβ€Ž

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from ..consoles import (
44
console,
55
)
6-
from .deploy import app as deploy_app
76
from .init import app as init_app
87
from .new import app as new_app
98
from .set import app as set_app
@@ -12,7 +11,6 @@
1211
app = typer.Typer(add_completion=False)
1312
app.add_typer(init_app, name="init")
1413
app.add_typer(new_app, name="new")
15-
app.add_typer(deploy_app, name="deploy")
1614
app.add_typer(utils_app, name="utils")
1715
app.add_typer(set_app, name="set")
1816

β€Žminos/cli/api/deploy.pyβ€Ž

Lines changed: 0 additions & 42 deletions
This file was deleted.

β€Žminos/cli/deploying/__init__.pyβ€Ž

Lines changed: 0 additions & 6 deletions
This file was deleted.

β€Žminos/cli/deploying/abc.pyβ€Ž

Lines changed: 0 additions & 29 deletions
This file was deleted.

β€Žminos/cli/deploying/microservice.pyβ€Ž

Lines changed: 0 additions & 37 deletions
This file was deleted.

β€Žminos/cli/deploying/project.pyβ€Ž

Lines changed: 0 additions & 30 deletions
This file was deleted.

β€Žtests/test_cli/test_api/test_deploy.pyβ€Ž

Lines changed: 0 additions & 38 deletions
This file was deleted.

β€Žtests/test_cli/test_deploying/__init__.pyβ€Ž

Whitespace-only changes.

β€Žtests/test_cli/test_deploying/test_abc.pyβ€Ž

Lines changed: 0 additions & 35 deletions
This file was deleted.

0 commit comments

Comments
Β (0)