How to use this course & Vagrant intro

CodingBrainTutor is your base to easily follow along the lessons. You can manage the application we are going to develop, set the source code for the exercises and get additional information.

We deliver our training through the CodingBrain application to make your learning process as straightforward and convenient as possible. We believe that by far the best way to learn to code is to tinker and play with it in a fun, non-distractive way.

Vagrant commands

  • vagrant up to start virtual machine
  • vagrant ssh to log into virtual machine. Access shared folder at /vagrant
  • vagrant halt to stop virtual machine
  • vagrant destroy to remove virtual machine and free up space

Manage app

We are going to implement “BookieMarker”, a bookmarking application with web-scraping capabilities. You can handle the backend and worker (we will talk about those in the class) using the sidebar on the left.

To run the application, do the following:

  • Run backend by clicking on start. The backend will go from down to starting to up. It takes a while to start up
  • Run the worker (our scraping web service) by clicking on start. This is a small application that goes quickly into start

When both are up, click the large “open app” button at the top-right corner. This will open BookieMarker in a new window.

Manage the source code with git

In the installation folder where you have installed the CodingBrain application, you will find the source of the three parts of our application:

|-- backend/
|-- frontend/
'-- worker/

The files of each lesson are in git branches that you can checkout before doing the exercises. The final version of the code is in a branch of the same name: final. If this is the first time you started the CodingBrain site, the source code is already in the final branch.

Keeping your local changes

If you switch to a branch of a lesson and have made changes to the code, they get stashed automatically, so none of your code gets lost. At some point, however, you will need to merge your changes manually if you want to keep them.

Using Vagrant, git directly

You can, of course, use Vagrant and Git directly. If you run vagrant ssh you are logged into the virtual machine from where you can execute the commands to run the backend or worker.

You can also skip CodingBrainTutor and use git directly.

Everything is installed and ready, you can jump right into coding!

We hope you are going to enjoy the class.

Should you have any questions or feedback, drop us an email at: [email protected].

We'll get back to you as soon as possible.