Exercise 46. A Project Skeleton


This exercise is where you start learning how to set up a good project “skeleton” directory. This skeleton directory will hold all the basics you need to get a new project up and running. It will hold your project layout, automated tests, modules, and install scripts. When you go to make a new project, just copy this directory to a new name and edit the files to get started.

Creating the Skeleton Project Directory

First, create the structure of your skeleton directory with these commands:

$ mkdir projects $ cd projects $ mkdir skeleton $ cd skeleton $ mkdir bin data doc ext lib tests ...

Get Learn Ruby the Hard Way: A Simple and Idiomatic Introduction to the Imaginative World of Computational Thinking with Code, Third Edition, Video Enhanced Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.