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 lib/NAME

I use a directory named projects to store all the various things I’m working on. Inside ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.