Skip to content

Instantly share code, notes, and snippets.

@asim
Last active February 11, 2020 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save asim/b02152cfbb093b55c6b3d66f37d2533a to your computer and use it in GitHub Desktop.
Save asim/b02152cfbb093b55c6b3d66f37d2533a to your computer and use it in GitHub Desktop.
The new service page

New Service

Create a new service

Service Name: fooba___________

Your service will be created in github.com/micro/services/fooba

Checkout and build

Login to the platform, create your service and build it

# login to the platform
micro login --platform

# checkout the micro monorepo
git clone --no-checkout https://github.com/micro/services

# create your new service
cd services && micro new foobar

# build the service
micro build foobar

Push and Run

Now push your service to GitHub and run it

# Commit and push
git add foobar
git commit -m "New foobar service"

# Run the service
micro run foobar --platform

Success

Spinner - Status - OK

Now go to https://micro.mu/platform/service/foobar

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment