"Twitter Clone" Full-Stack Web Development project tutorial on LAMP (Linux, Apache, SQL, PHP)

Ex-Google TechLead builds a full-stack web application for a Twitter prototype in less than 140 lines of code. Check out http://curiositystream.com/techlead for unlimited access to the world’s top documentaries and non­fiction series, and enter promo code ‘techlead’ for a free 30-day membership.

In this coding video, we create a “Twitter clone” using the classic LAMP web stack. The demo and source code are here: http://tweetdemo.com/

LAMP (Linux, Apache, MySql, PHP) has traditionally been a popular full-stack web-dev technique that powers many websites. It’s one of my favorite development techniques for quickly setting up a website. I’ve purposely kept this tutorial as simple as possible to show you how you can also set up your own complete website as simply as possible. From here, you can refactor code, bring in additional developer frameworks and libraries, scale out, and so forth, but this is a nice start to show you the foundations of web development. BTW, I also recommend upgrading to the latest PHP7 if you continue working on this stack for the latest features.

Note, that there are other popular techniques as well. Some people may prefer using Docker containers instead of the monolithic server here for better scalability (though it’s a more complex setup), or we could have used Amazon AWS, Google Cloud, or DigitalOcean for hosting instead of IBMCloud, and others might use entirely managed backends like Firebase or AWS Lambda. Python with Flask/Django or NodeJS or Go could have been used instead of PHP/Apache as the web backend framework, and PostgreSQL or MongoDB could be swapped in for MySql as the database. You could have also added a caching layer here using something like Memcached or Redis. Given more time, we could have used a CDN as well for faster image loads, added a load-balancer, or used database replication for scalability. (If you’re interested in systems design, I talk a lot about it in my program at http://techinterviewpro.com/.)

Let me know if you have any questions and I’ll be happy to answer them in the comments below.

Join me in my new coding interview training program here http://techinterviewpro.com/

And, join ex-Google/ex-Facebook engineers in 60+ whiteboard coding sessions at (20% off now, limited time): https://algopro.com/

» Get my free daily coding interview practice at http://dailyinterviewpro.com/

» Get 2 free stocks (up to $1000 value) by opening an account and depositing $100.

» Want to know what computer/camera gear I’m using?

» Get Official TechLead t-shirt merch.

» Check out TechLead: Season 1 here, my older private videos.

» Affiliate Program: Are you an influencer with 5000+ followers, or do you know someone? Join my affiliate program and share our coding interview prep series for 50% commission, I’d love to work with you. Drop me a line at [email protected] and I’ll get you set up.

» Party up:

Post Author: hatefull