Skip to main content

Libraries

đź•“ 10 minutes

What you’ll learn​

How to create your own library.

  • If your application components share similar functionality, you can create your own library that will contain this functionality.
  • A newly created library then can be imported into every component of your application and can be used as a normal library, so you don’t need to write identical code pieces every time.

Prerequisites​

Steps​

  1. Create a new library.
    • First of all, go to "Applications" and select the "Libraries" section.
    • Click on the "Create New Library" button.
      • Select your library name and add a description.
      • Next, choose one of the starter libraries. It depends on what technology(language) you would like to use:
        • Java Library
        • .NET Core
        • TypeScript/Angular9 Library
      • When you have filled in all needed information, click the "Confirm" button.
  2. Library details.
    • After you've created your new library, you are able to see its details by clicking on the "Detail" button.
  3. Clone your library.
    • The next step is to go to the "Clone Your Repository" section inside the library details to clone the prepared project to your local environment.
      • You can clone your project using the SSH-key or HTTP(S) URL.
  4. Change your library project code, push your changes into the CodeNow git-repository, and build your library project.
  5. Include your library in the application component.
    • After the build is completed, go to library details again and see the "Include Your Library" section.
      • There you can see instructions on how to include your new library to the chosen application components.

Screenshots​

Step 1.1

go_to_lib

Step 1.2

name_descr_starter

Step 2.1

lib_details

Step 3.1

clone_ssh

Step 3.2

clone_https

Step 4.1

build

Step 4.2

name_and_branch

Step 5. Example for Java Library

include_lib_into_app