Quick Demo
Objective
Build a microservice using SOAJS Swagger Editor
Deploy micorservice and test it using Swagger Simulator and Postman
Quick look at Multitenancy and its impact on microservices' behavior
Start by installing and deploying SOAJS as a local Cloud; Click Here and you will be redirected to the SOAJS Installer Space where you can find the installation instructions. For this demo, we will be using Local Cloud Deployment on top of Docker.
Use the installer to install SOAJS, but do not login yet, this demo requires you to import some settings then it tell you when it is time to login.
Clone the quick demo repository from github; it contains the code and a script that will bootstrap some database configuration for this demo ( explained below )
OSX Users
Make sure you have Xcode (or at least Xcode cli) installed to be able to use the "git" command from the terminal!
Fetch SOAJS demo repo
# Create a directory to clone the repo
> mkdir -p /opt/soajs/node_modules
# Go to directory
> cd /opt/soajs/node_modules
# Clone repo from github
> git clone git@github.com:soajs/soajs.quick.demo.git
# install dependencies
> cd soajs.quick.demo
> npm install
# Import the configuration
> cd soajs.quick.demo/import/
# node . -h <mongo service host> -p <mongo port>
> node . -h dashboard-soajsdata -p 32017Import Script Help
# Open the import script help manual
> cd soajs.quick.demo/import/
> node . --helpSwagger Editor
From here on, we will use the SOAJS Dashboard UI to resume all the work. Log in to the SOAJS Dashboard and head to Develop pillar → Swagger Editor. This Module provides the ability to create microservices using YAML code. References:
|