Playlistr: Setup
To get started you'll need CommandBox
installed and MySQL as your database.
CommandBox
The best way to get started with a ColdBox
application is to fire up CommandBox
in your terminal, command line or shell.
cd
into the directory you want to build the app in. We've chosenplaylistr
- Fire up
CommandBox
- Install the
ColdBox
framework - Create a skeleton
ColdBox
app - Then we need to install the
CommandBox
modulecommandbox-migrations
to help us with the creation of our database tables. - To allow
commandbox-migrations
to interact with your database we need to tell it where it is and how to connect to it. We use a local.env
file for that purpose. The modulecommandbox-dotenv
provides that support so we need to install that as well. More on our.env
file later.
In addition to this description of the process there is a GitHub repository of the code needed to reproduce this product. To be able to follow along in stages there are a number of branch releases. Each branch will be highlighted in this documentation like so:
Note: By default the ColdBox
skeleton apps gitignore the framework and modules directories. Therefore when you checkout a branch release remember to install --force
to pull down and install all the dependencies that are in the box.json
at that point.