New Application Component

🕓 10 minutes

What you’ll learn#

This tutorial details how to create a new application component that encapsulates specific application logic.

Prerequisites#

Steps#

1. Navigation Steps#

Click on "Choose Action" in your application detail and select "Create New Component".

note
  • An application in the microservices architecture is described by the application components and their orchestration.
  • Components (microservices) encapsulate specific application logic (i.e. user details, billing, shipping, etc.).
  • They have separate release cycles and Git repositories.
step1.1

2. Name Your Component#

Choose a name and description for the component.

step2.1

3. Setup Your Stack#

Choose your desired Language / Build Tool / Framework. CodeNOW currently supports:

Or choose another technology:

step3.1

4. Starter Configuration#

If you choose Java or PHP as your programming language, you can edit the name of your package in the Starter Configuration section.

step4

5. Advanced Configuration#

5.1. Advanced Mode#

Dockerfile and Helm files are usually generated automatically and are hidden from a normal user. Advanced configuration allows you to create and manage your own Dockerfile and Helm Files.

caution

If you decide to use your own configuration, you need to know exactly what you are doing! The application may crash due to the wrong configuration.

5.2. Connect Services#

If you want to connect a new service such as Kafka or Redis to your application component, see:

step5

6. Create Component#

Create component and wait for the component creation. You can scroll down the component details to find the Git repository link, where the component source code will be stored.

7. Local Environment Setup#

See the component details for additional information about the component, including how to clone this project to your local environment.

step7

7.1. Clone Your Repository#

  • Clone the Git repository using your favourite Git management tool.
    • Use your personal SSH key and start the development.
  • You can also connect to your repository via HTTP(S).
    • Use the same email and password you use to log in to CodeNOW.

Your personal SSH key.

step7.1.1

Connect via HTTP(S).

step7.1.2

7.2. Set up Local Environment#

Follow the instructions in the "Set up local environment" section in the detail of your component. Instructions vary depending on the stack you choose.

step7.2

What’s next?#

You might be interested in our other tutorials: