micro / services

Real World Micro Services
Apache License 2.0
1.25k stars 136 forks source link

How can we start this project? #434

Closed cesc1802 closed 1 year ago

cesc1802 commented 1 year ago

image I'll try to run example project by using the command is micro run github.com/micro/services/helloworld but I faced with error mentioned in the image

asim commented 1 year ago
# run the micro server
micro server

# set env to local
micro env set local

# login (user: admin pass: micro)
micro login

# run the service
micro run github.com/micro/services/helloworld

If on windows execute as root user in powershell

cesc1802 commented 1 year ago

thank you for your support. Why do we need to run the micro server first? what is the purpose of this command?

asim commented 1 year ago

Micro is a platform that provides an abstraction to underlying infrastructure and cloud services; including auth, storage, messaging, etc. The services are run on the Micro platform e.g like an operating system or PaaS. So you must first run the server aka micro server and then you can instruct it to run services using micro run xxxx.

See https://micro.dev/docs for more info