Welcome

DSE Version: 6.7

Intro

Exercises

Slides

Resources

Welcome to the Application Development training session using DataStax Apache Cassandratm as a Service (CaaS). In this course you will:

  • Spin up your own cloud Database
  • Connect to it using the DataStax Driver
  • Implement functionality in the video sharing website killrvideo.com

You will see that connecting your application to a Cassandra database is a snap. Pulling and mutating data with the driver is simple to do. Click on the Exercises tab above and we will introduce you to the features of this short course.

No write up.

Exercise: Introduction to the Course

In this exercise, you will:

  • Take a brief tour of the KillrVideo website - which you will build in this course

  • Get a sense of the skills you'll learn in this course

  • Become generally enthusiastic about this course and its fine instructors

Welcome to the Application Development training session using DataStax Apache Cassandratm as a Service (CaaS). In this course you will spin up your own database, connect to it using the DataStax Driver, and implement functionality in the video sharing website killrvideo.com. You will see that connecting your application to a Cassandra database is a snap, and pulling and mutating data with the driver is simple to do.

Steps

1) Visit killrvideo.com. Open a browser and navigate to killrvideo.com. This video-sharing website is bound to take over the world (cough).

Notice the most recently submitted videos show on the homepage.

NOTE

Please be aware that KillrVideo is missing the 'e' in its spelling. This brings a lot of street-cred to our website!

Go ahead and click on one of the videos to see the details.

You see that you can rate the video and add comments. If you like, feel free to register for an account and rate a video. Yes, this is a shameless plug to try and drive traffic to our site - but hey! be a sport!

2) Start up your own version of KillrVideo. When you arrived today, you received a small piece of paper with information similar to the following:

Eclipse Che - http://<your-ip-address>:8080/che/workspace
KillrVideo - http://<your-ip-address>:3000

The IP address is the node of your virtual workstation. That's right, this node is your very own Che workstation and KillrVideo app. You don't have to share it with anybody!

We have the code and web server up and running on your workstation. It's running your own version of the KillrVideo code. Open a browser tab, and navigate to the IP address on your sheet of paper. In our example, the IP address is http://< your-ip-address >:3000.

Ah, bummer, your site isn't as cool as the actual killrvideo.com is...YET! This is because there is no database supporting your version.

Your mission, should you choose to accept it, is to create a Cassandra database and connect your KillrVideo application to it. Just to be clear, this will take a little bit of time. We will spend the day working through all of the modules that will complete your version of KillrVideo.

3) Launch Che. Che is a browser-based version of the Eclipse Integrated Development Environment (IDE). Open another browser tab and navigate to your Eclipse Che URL, as listed on your IP paper. In our example, the Che URL is http://< your-ip-address >:8080/che/workspace.

In this course, we will be coding in Java. Che helps us quickly get to development. Instead of spending time setting up everyone's computer and IDE with the KillrVideo code, we automatically loaded the projects into this web-based version of Eclipse called Che. Neato, eh?

Notice the two projects shown on the left: killrvideo and scratchpad. Feel free to poke around in there if you like, but in later units, we will dig deeper into these two projects.

scratchpad is for experimenting, testing, creating driver code and kicking the tires so to speak, without the headache of having to run the entire KillrVideo website. You will do most of your heavy lifting in the scratchpad project and then, once you are comfortable that it is working, you will migrate that code to the killrvideo project.

4) Take a look at the units of this course. Guess what? You're already in one! In case you haven't already seen it, here's a complete list of all the course units: https://academy.datastax.com/resources/cassandra-application-development.

Each unit will have at least an exercise, a slide deck, and sometimes extra resources. There may be other features too. You can access each of these from the tabs at the top of the unit's page:

The slides are a PDF form of what the instructor covered. So, if you didn't quite catch everything that the instructor said, you can use the slides for review. And of course, as always, we encourage questions. Ask away and don't be shy like Jamie!

Learning new coding techniques can be a bit intimidating, but don't worry, we got your back. We have dropped several hints throughout all of the exercises. Here, we'll show you how they work. For example, if the exercise asks you the question: Who is the better programmer, Jamie or Steve? and you are not sure how to answer the question, you can try clicking on the hint to get some help as shown in this example (click on the hint):

Not sure about the answer? Click here for a hint
You may want to pick the one that is the best looking.

We might even have more than one hint to help you narrow down the answer. For example, here's a question: How many passengers were on the Titanic (somebody actually asked for this clarification: before it went down)? Use the hints below to answer this question correctly:

Click here for a hint
Between 2000 and 3000
Click here for a better hint
Between 2,400 and 2,500
Yet a better hint
Between 2,434 and 2,436
Still can't get it? Ok, click here for the full solution
2,435

Each exercise follows this pattern with hints to guide you along the way. Try not to click on the hints unless you are truly stuck. Some hints contain the full solutions, so you can verify your work. This lets you choose your own adventure and be as challenged as you would like.

5) Zooooooooooommm... One last trick before we're done. If you need to magnify any of the images in the exercises, just click. Go ahead and try. Click on the image below.

6) Turn on your lightsaber when you are done. When you arrived today, you received a lightsaber. When you start an exercise, turn off your lightsaber so the instructors know you are working.

If you have a question or need assistance, put the lightsaber in blinking mode. This will notify our team that you need some individual attention.

When you are done with the exercise, turn on your lightsaber to a solid color. The instructors track the general progress of the class by observing illuminated lightsabers.

Alrighty, we hope that's enough to get you settled and see where we are headed. You will code a bunch in Eclipse Che using the exercises from the units to make your KillrVideo website functional. Get ready. This is going to be an awesome ride.

END OF EXERCISE

No FAQs.

Accelerate Bootcamp Resource Guide: Your go-to resource for information about Accelerate Bootcamp.

Accelerate Bootcamp Survival Guide (PDF): Just the bare essentials to be successful at building your application.

Comments are closed.