Install service template
To make life easier for you, a custom-service-template written in Javascript is available on GitHub. It is a ready-to-run example which exposes methods and calls other microservices in the project. Use this template project as a nice boiler plate for your custom service in Arrigo Local.
Open a shell and navigate to your source code folder. (/code
).
- Using GIT: clone the repository to your computer.
If you are familiar to GIT, open a console window in your source code folder and run
❯ git clone https://github.com/rssoftwareab/arrigo-custom-service-template Cloning into 'arrigo-custom-service-template'... remote: Enumerating objects: 13, done. remote: Counting objects: 100% (13/13), done. remote: Compressing objects: 100% (12/12), done. remote: Total 13 (delta 2), reused 11 (delta 0), pack-reused 0 Receiving objects: 100% (13/13), 12.22 KiB | 6.11 MiB/s, done. Resolving deltas: 100% (2/2), done. ~/code ─────────────────────────────────────────────────────── 12s 10:20:00 ❯
- Using ZIP: Download the repository to your computer.
- Unzip the repository to its destination. Either rename the file to
arrigo-custom-service-template.zip
before unzipping, or rename the unzipped folder toarrigo-custom-service-template
afterwards. - Enter
cd arrigo-custom-service-template
to switch your newly cloned repository. - In the command prompt, type
npm install
to install all dependencies to the project. This may take a while. - Open Visual Studio in this folder by entering
code .
at the command prompt.
You are now ready to start programming.
Browse the index.js
to get familiar with the code, but don't worry, we will go through the details in the next chapters.
The custom service are now located in the folder C:\code\arrigo-custom-service-template\index.js
.
Now it is time to Add the service to Arrigo Local!