Commercialize Package and Earn money
Apex also allows developers the opportunity to earn passive income by marking their packages as commercial. Let's update the new package as necessary to put a pay wall behind it.
Open the file at /etc/Disaster/package.yml, and modify the
general section so it looks like below:
description: Disaster relief coordination system
We simply changed the
access element to
commercial, and added theprice
elements to thegeneral` section.
Open the file at /etc/docs/Disaster/sales.md and replace it with the following contents:
# Disaster Relief Coordination System
A really cool package to provide disaster relief coordination and manage locations, volunteers and assignees.
The sales.md file is meant for commercial packages and to market them. It can contain anything you would like including links to external sites to market the package.
Commit the package again to update it to contain the sales.md file by running the following package commit CLI command:
apex commit disaster
To have the Apex network updated with the latest contents of the
general section within the package.yml file run the following package update CLI command:
apex package update disaster
This will update the package within the Apex network, and now when you visit the repository at https://code.apexpl.io/YOUR_USERNAME/disaster you will see it has a pay wall on it. Full information on marketing packages as commercial and earning passive income can be found on the Commercialize Packages page of the developer documentation.