Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Development Tools

Liban Shire
PLUS
Liban Shire
Courses Plus Student 4,147 Points

Multiple projects on my machine?

So I noticed teamtreehouse has a lot of projects and tracks and library of work to learn.

I'm in the process of learning PHP, HTML, CSS and working with WordPress, Laravel, Drupal and MySQL.

I use a macbook pro OS X and I want to have different projects locally on my laptop. I want to be able to work on things locally on my machine before I send them off. I have a lot of projects I want to do and I want to know how some of you deal with this?

Is it recommended to install MAMP? or install Apache, MySQL and PHP manually and use a sites folder to contain my projects? What's the easiest way to have multiple projects on my machine but keeping everything separated?

4 Answers

Philip Cox
Philip Cox
14,818 Points

Seen as though you mention PHP and Laravel. Have you tried the new Laravel basics course? I really recommend it, and it introduces you into Vagrant and virtual box's. This way you can set up local development environments without having to have all the dependancies in your machine, it's awesome! I have just started using it myself. Say goodbye to MAMP and the headache of updating your OS.

I was put off trying Ruby having to change my Bash paths and use home-brew etc, but now I can jet create a virtual box with everything inside and go! In addition, Laravel has its own pre made box named Homested. This has all the things you require for a new Laravel app.

Have you checked out the Treehouse courses on Git? If you're working on multiple projects and want to keep your localhost folders clean, I would keep all your work on Git and clone the repository when you want to work on them. Commit your changes when you're done and you can wipe your localhost folder clean to work on the next project.

If you want to keep all files local then I would create subdirectories in your localhost folder

localhost/project1, localhost/project2, localhost/project3, etc...