This guide demonstrates how to get a simple project up and running on Digital Garage.
The following sections guide you through creating a project that contains a sample Node.js application that will serve a welcome page and the current hit count (stored in a database) using the Digital Garage web console. This involves creating two pods:
one to host the Node.js application
one to host the MongoDB database
The tutorial assumes you have:
In this section, you will fork the Digital Garage Node.js sample application on GitHub and clone the repository to your local machine so that you can deploy and edit the application.
On GitHub, navigate to the thedigitalgarage/nodejs-ex repository. In the top-right corner of the page, click Fork:
Next, execute the following commands on your local machine to clone the sample application and change to the new directory:
$ git clone https://github.com/<your_github_username>/nodejs-ex $ cd nodejs-ex
That’s it! Now, you have a fork of the original thedigitalgarage/nodejs-ex example application Git repository and a copy on your local machine.
Visit the Web Console topic to learn about its components.
In this section, you will deploy your first application to Digital Garage using the web console.
Navigate to the welcome
page of the Digital Garage web console. If you have not created a project, you will
see a welcome message from the Digital Garage with instructions to "open your account settings"
and create a new project. You can click the link provided in the message or
choose the drop down menu for your profile in the upper right corner of the screen. In the
dropdown menu choose
Account to be directed to your account dashboard.
In your account dashboard, click the Create a Project button to configure the
settings for your project. In the New Subscription screen replace
my-project with a
unique and lasting name for your project, such as
namespace can be used for many projects in many stages over coming months. It is best to think
of the project as a long-lived workspace rather than a temporary project. You can leave
the description blank if you like. With the slider, choose the resources you would like
to assign to this workspace/project.
You will be able to change the resources assigned to this workspace at any time by upgrading or downgrading your resource plan.
Click the GO/CODE button.
If you have not entered your payment information for the account, you will see a pop-up payments screen. On this screen you will have the option of entering a discount code for a free subscription or discounts off of our standard plans.
After you have created your project, go back to the web console page by closing the account tab or window. You will now see the project you just created in your project list.