Let's try out Node.js on drie using our starter app and GitHub!
You have drie installed
This guide assumes you have access to an instance of drie. If you need more information on how to get started - get in touch: firstname.lastname@example.org
We will use drie's NodeJS starter app. Go to:
Create a new branch for yourself by clicking the "Branch: master" drop-down button and typing in your new branch name. In this example, the branch name is:
Click on "index.js" and edit line 8 with any hello message you want and commit the change.
You should see some colored indicators showing that your commit is building. Click on the colored indicator.
You should land on the drie dashboard and see the current build status. You'll probably have to refresh your browser a few times to see when your build finishes.
When it's done, click on the "Your app is hosted on:" link and you will see the change you committed deployed on drie!
For those who would rather work on the command line, here are the commands:
# 1. Get the Node.js drie starter app $ git clone email@example.com:drie-demo-1/drie-nodejs-starter-app.git $ cd drie-nodejs-starter-app # 2. Create a new branch called "my-new-branch-kjsjh" $ git checkout -b my-new-branch-kjsjh # 3. Edit index.js and commit the change $ vi index.js $ git commit -am "Changed hello message" $ git push origin my-new-branch-kjsjh # The rest you have to do on your web browser