Hi everyone,
In this article, I'm going to explain Deploy Now, a new utility that improves the ability to deploy API Proxies with a single click to Edge without the need of additional tools.
This utility is open for anyone who wants to share API Proxy source code in Github with others. Just follow the directions below, and you'll be all set.
The purpose of Deploy Now Button is to make easy deployment of API Proxy Samples to Apigee Edge. So, you no longer need to install tools on your laptop. Just click on the button below to get started.
For developers looking for additional examples of API Proxies enabled with Deploy Now, checkout the following examples:
As you can see, to enable your public Git repo, simply add the following HTML fragment to your Git README.md along with a make.sh file:
<a href="https://deploynow.apigee.com/login-form/?repo=https://github.com/dzuluaga/Mavendeploynow.git&apiFolder=/&makeScript=make.sh"> <img src="https://raw.githubusercontent.com/apigee/apigee-deploy-now/master/images/deploy_to_apigee.png" align="left" height="45" width="232" > </a>
The following parameters are required:
For instance, anybody with an Apigee Edge account can deploy the API Proxy with the link below:
API Proxies can also be deployed through the API, so no need to leverage the HTML form.
API Proxy from Github Repocurl -X POST -H "Content-Type: application/x-www-form-urlencoded" -d 'repo=https%3A%2F%2Fgithub.com%2Fakoo1010%2Fapigee-tutorials.git' -d 'apiFolder=apiproxies%2Fapigee-nock-mock' -d 'makeScript=make.sh' \ -d 'org=testmyapi' -d 'env=test' -d 'userName='$ae_username'' -d 'pw='$ae_password'' 'https://deploynow.apigee.com/deploy' -vAPI Proxy from a zip file
curl -v -X POST -F "zipFile=@Mavendeploynow-master.zip" -F "makeScript=makeScript.sh" -F "apiFolder=Mavendeploynow-master/src/gateway/forecastweatherapi/" -F "org=testmyapi" -F "env=test" \ -F userName=$ae_username -F pw=$ae_password 'https://deploynow.apigee.com/deploy_zip'
This repo contains all the Node.js and Express.js code necessary to run it on your own server. So, please help yourself, clone this repo and deploy it locally!
https://deploynow.apigee.com/login-form/
http://localhost:3000/login-form/
Credits
Thanks to @Alex Koo and @Maruti Chand who collaborated several weekends building this tool.
Git Repo
Source code of this article is available from Apigee Deploy Now Github Repo.
Awesome @Diego Zuluaga , @Alex Koo , @Maruti Chand . Great tool, very useful one.