@@ -21,24 +21,51 @@ structure, you'll get your microservices up and running as fast as you've coded
2121First, 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
3131minos set database postgres
3232minos set broker kafka
33- minos set api-gateway minos
3433minos 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
4046cd 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
4471Time to start coding! Yes, already!
0 commit comments