# Project Based Learning A list of programming tutorials in which learners build an application from scratch. These tutorials are divided into different primary programming languages. Some have intermix technologies and languages. To get started, simply fork this repo. Please refer to [CONTRIBUTING.md](CONTRIBUTING.md) for contribution guidelines. ## Table of Contents: * [C/C++](#cc) * [C#](#c) * [Clojure](#clojure) * [Elixir](#elixir) * [Java](#java) * [JavaScript](#javascript) * [Kotlin](#kotlin) * [Python](#python) * [Go](#go) * [Ruby](#ruby) * [Haskell](#haskell) * [PHP](#php) * [OCaml](#ocaml) * [R](#r) * [Rust](#rust) * [Swift](#swift) * [Additional resources](#additional-resources) ## C/C++: * [Build an Interpreter in C](http://www.craftinginterpreters.com/) * [Write a Shell in C](https://brennan.io/2015/01/16/write-a-shell-in-c/) * [Write a FUSE Filesystem](https://www.cs.nmsu.edu/~pfeiffer/fuse-tutorial/) * [Build Your Own Text Editor](http://viewsourcecode.org/snaptoken/kilo/) * [Build Your Own Lisp](http://www.buildyourownlisp.com/) * [How to Program an NES Game in C](https://nesdoug.com/) * [Write an OS from scratch](https://github.com/tuhdo/os01) * [How to Make Minecraft in C++/OpenGL](https://www.youtube.com/playlist?list=PLMZ_9w2XRxiZq1vfw1lrpCMRDufe2MKV_) * [How to Write an Emulator (CHIP-8 interpreter)](http://www.multigesture.net/articles/how-to-write-an-emulator-chip-8-interpreter/) * [Beginning Game Programming with C++ and SDL](http://lazyfoo.net/tutorials/SDL/) * [Implementing a Key-Value Store](http://codecapsule.com/2012/11/07/ikvs-implementing-a-key-value-store-table-of-contents/) * Let's Code a TCP/IP Stack * [Part 1: Ethernet & ARP](http://www.saminiir.com/lets-code-tcp-ip-stack-1-ethernet-arp/) * [Part 2: IPv4 & ICMPv4](http://www.saminiir.com/lets-code-tcp-ip-stack-2-ipv4-icmpv4/) * [Part 3: TCP Basics & Handshake](http://www.saminiir.com/lets-code-tcp-ip-stack-3-tcp-handshake/) * [Part 4: TCP Data Flow & Socket API](http://www.saminiir.com/lets-code-tcp-ip-stack-4-tcp-data-flow-socket-api/) * [Part 5: TCP Retransmission](http://www.saminiir.com/lets-code-tcp-ip-stack-5-tcp-retransmission/) * Writing a minimal x86-64 JIT compiler in C++ * [Part 1](https://solarianprogrammer.com/2018/01/10/writing-minimal-x86-64-jit-compiler-cpp/) * [Part 2](https://solarianprogrammer.com/2018/01/12/writing-minimal-x86-64-jit-compiler-cpp-part-2/) * [Part 3](https://solarianprogrammer.com/2018/01/12/writing-minimal-x86-64-jit-compiler-cpp-part-3/) * [Build a Live Code-reloader Library for C++](http://howistart.org/posts/cpp/1/index.html) * [Write a hash table in C](https://github.com/jamesroutley/write-a-hash-table) * [Let's Build a Simple Database](https://cstack.github.io/db_tutorial/) * [Let's Write a Kernel](http://arjunsreedharan.org/post/82710718100/kernel-101-lets-write-a-kernel) * [Write a Bootloader in C](http://3zanders.co.uk/2017/10/13/writing-a-bootloader/) * [Linux Container in 500 Lines of Code](https://blog.lizzie.io/linux-containers-in-500-loc.html) * Write a C compiler * [Part 1: ](https://norasandler.com/2017/11/29/Write-a-Compiler.html) * [Part 2: Unary Operators](https://norasandler.com/2017/12/05/Write-a-Compiler-2.html) * [Part 3: Binary Operators](https://norasandler.com/2017/12/15/Write-a-Compiler-3.html) * [Part 4: Even More Binary Operators](https://norasandler.com/2017/12/28/Write-a-Compiler-4.html) * [Part 5: Local Variables](https://norasandler.com/2018/01/08/Write-a-Compiler-5.html) * [Implementing a Language with LLVM](https://llvm.org/docs/tutorial/#kaleidoscope-implementing-a-language-with-llvm) ## C#: * [Learn C# By Building a Simple RPG Game](http://scottlilly.com/learn-c-by-building-a-simple-rpg-index/) * [Create a Rogue-like game in C#](https://roguesharp.wordpress.com/) * [Create a Blank App with C# and Xamarin (work in progress)](https://www.intertech.com/Blog/xamarin-tutorial-part-1-create-a-blank-app/) * [Build iOS Photo Library App with Xamarin and Visual Studio](https://www.raywenderlich.com/134049/building-ios-apps-with-xamarin-and-visual-studio) ## Clojure: * [Build a Twitter Bot with Clojure](http://howistart.org/posts/clojure/1/index.html) * [Bulding a Spell-Checker](https://bernhardwenzel.com/articles/clojure-spellchecker/) ## Elixir * [Building a Simple Chat App With Elixir and Phoenix](https://sheharyar.me/blog/simple-chat-phoenix-elixir/) ## Java: * [Build a Simple HTTP Server with Java](http://javarevisited.blogspot.com/2015/06/how-to-create-http-server-in-java-serversocket-example.html) * [Build an Android Flashlight App](https://www.youtube.com/watch?v=dhWL4DC7Krs) * [Build a Spring Boot App with User Authentication](https://scotch.io/tutorials/build-a-spring-boot-app-with-user-authentication) ## JavaScript: * [Build 30 things in 30 days with 30 tutorials](https://javascript30.com) ### Mobile Application: * [Build a React Native Todo Application](https://egghead.io/courses/build-a-react-native-todo-application) ### Web Applications: #### React: * [Create Serverless React.js Apps](http://serverless-stack.com/) * [Create a Trello Clone](http://codeloveandboards.com/blog/2016/01/04/trello-tribute-with-phoenix-and-react-pt-1/) * [Create a Character Voting App with React, Node, MongoDB and SocketIO](http://sahatyalkabov.com/create-a-character-voting-app-using-react-nodejs-mongodb-and-socketio/) * [React Tutorial: Cloning Yelp](https://www.fullstackreact.com/articles/react-tutorial-cloning-yelp/) * [Build a Full Stack Movie Voting App with Test-First Development using Mocha, React, Redux and Immutable](https://teropa.info/blog/2015/09/10/full-stack-redux-tutorial.html) * [Build a Twitter Stream with React and Node](https://scotch.io/tutorials/build-a-real-time-twitter-stream-with-node-and-react-js) * Build a Serverless MERN Story App with Webtask.io * [Part 1](https://scotch.io/tutorials/build-a-serverless-mern-story-app-with-webtask-io-zero-to-deploy-1) * [Part 2](https://scotch.io/tutorials/build-a-serverless-mern-story-app-with-webtask-io-zero-to-deploy-2) #### Angular: * [Build an Instagram Clone](https://hackhands.com/building-instagram-clone-angularjs-satellizer-nodejs-mongodb/) * Build an offline-capable Hacker News client with Angular 2+ * [Part 1](https://houssein.me/angular2-hacker-news) * [Part 2](https://houssein.me/progressive-angular-applications) * [Build a web application with Django and AngularJS](https://thinkster.io/django-angularjs-tutorial) #### Others (Node, Hapi, Express...): * [Build a URL Shortener with Node, MongoDB and Hapi.js](https://www.codetuts.tech/build-a-url-shortener-node-hapi-js/?utm_source=mybridge&utm_medium=blog&utm_campaign=read_more) * [Build a real-time Markdown Editor with NodeJS](https://scotch.io/tutorials/building-a-real-time-markdown-viewer) * [Test-Driven Development with Node, Postgres and Knex](http://mherman.org/blog/2016/04/28/test-driven-development-with-node/) * [Build A Simple Twitter Bot with Node.js in 38 lines of code](https://codeburst.io/build-a-simple-twitter-bot-with-node-js-in-just-38-lines-of-code-ed92db9eb078) * Build a Progressive Web Application (PWA) * [Part 1](https://bitsofco.de/bitsofcode-pwa-part-1-offline-first-with-service-worker/) * [Part 2](https://bitsofco.de/bitsofcode-pwa-part-2-instant-loading-with-indexeddb/) * [Part 3](https://bitsofco.de/bitsofcode-pwa-part-3-push-notifications/) * Build A Support Ticket Application With AdonisJs * [Part 1](https://scotch.io/tutorials/build-a-support-ticket-application-with-adonisjs) * [Part 2](https://scotch.io/tutorials/build-a-support-ticket-application-with-adonisjs-part-2) ### Game Development: * [Make 2D Breakout Game using Phaser](https://developer.mozilla.org/en-US/docs/Games/Tutorials/2D_breakout_game_Phaser) * Make Flappy Bird in HTML5 and JavaScript with Phaser * [Part 1](http://www.lessmilk.com/tutorial/flappy-bird-phaser-1) * [Part 2](http://www.lessmilk.com/tutorial/flappy-bird-phaser-2) ### Desktop Application: * Build a Music Player with React & Electron * [Part 1](https://scotch.io/tutorials/build-a-music-player-with-react-electron-i-setup-basic-concepts) * [Part 2](https://scotch.io/tutorials/build-a-music-player-with-react-electron-ii-making-the-ui) * [Part 3](https://scotch.io/tutorials/build-a-music-player-with-react-electron-iii-bringing-it-all-together) ### Miscellaneous: * [How to Build a Web Framework in Less Than 20 Lines of Code](https://www.pubnub.com/blog/build-yourself-a-web-framework-in-less-than-20-lines-of-code/) * [Build Yourself a Redux](https://zapier.com/engineering/how-to-build-redux/) ## Kotlin: * [Keddit - Learn Kotlin While Developing an Android Application](https://medium.com/@juanchosaravia/learn-kotlin-while-developing-an-android-app-introduction-567e21ff9664) ## Python: ### Web Scraping: * [Mining Twitter Data with Python](https://marcobonzanini.com/2015/03/02/mining-twitter-data-with-python-part-1/) * [Scrape a Website with Scrapy and MongoDB](https://realpython.com/blog/python/web-scraping-with-scrapy-and-mongodb/) ### Web Applications: * [Build a Microblog with Flask](https://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-i-hello-world) * [Create a blog webapp in Django](https://tutorial.djangogirls.org/en/) * [Choose Your Own Adventure Presentations](https://www.twilio.com/blog/2015/03/choose-your-own-adventures-presentations-wizard-mode-part-1-of-3.html) * [Build a Todo List with Flask and RethinkDB](https://realpython.com/blog/python/rethink-flask-a-simple-todo-list-powered-by-flask-and-rethinkdb/) * [Build a Todo List with Django and Test-Driven Development](http://www.obeythetestinggoat.com/) * [Build a RESTful Microservice in Python](http://www.skybert.net/python/developing-a-restful-micro-service-in-python/) * [Microservices with Docker, Flask, and React](https://testdriven.io/) ### Bots: * [Build a Reddit Bot](http://pythonforengineers.com/build-a-reddit-bot-part-1/) * [How to Make a Reddit Bot - YouTube](https://www.youtube.com/watch?v=krTUf7BpTc0) * [Build a Facebook Messenger Bot](https://blog.hartleybrody.com/fb-messenger-bot/) * [Making a Reddit + Facebook Messenger Bot](https://pythontips.com/2017/04/13/making-a-reddit-facebook-messenger-bot/) * How To Create a Telegram Bot Using Python * [Part 1](https://khashtamov.com/en/how-to-create-a-telegram-bot-using-python/) * [Part 2](https://khashtamov.com/en/how-to-deploy-telegram-bot-django/) ### Machine Learning: * [Using Convolutional Neural Nets to Detect Facial Keypoints](http://danielnouri.org/notes/2014/12/17/using-convolutional-neural-nets-to-detect-facial-keypoints-tutorial/) * [Generate an Average Face using Python and OpenCV](https://www.learnopencv.com/average-face-opencv-c-python-tutorial/) ### Miscellaneous: * [Build a Simple Interpreter](https://ruslanspivak.com/lsbasi-part1/) * [Build a Simple Blockchain in Python](https://hackernoon.com/learn-blockchains-by-building-one-117428612f46) * [Write a NoSQL Database in Python](https://jeffknupp.com/blog/2014/09/01/what-is-a-nosql-database-learn-by-writing-one-in-python/) * [Building a Gas Pump Scanner with OpenCV/Python/iOS](https://hackernoon.com/building-a-gas-pump-scanner-with-opencv-python-ios-116fe6c9ae8b) * [Build a Distributed Streaming System with Python and Kafka](https://scotch.io/tutorials/build-a-distributed-streaming-system-with-apache-kafka-and-python) * [Writing a basic x86-64 JIT compiler from scratch in stock Python](https://csl.name/post/python-jit/) ## Go: * [Create a Real Time Chat App with Golang, Angular 2, and WebSocket](https://www.thepolyglotdeveloper.com/2016/12/create-real-time-chat-app-golang-angular-2-websockets/) * [Building Go Web Applications and Microservices Using Gin](https://semaphoreci.com/community/tutorials/building-go-web-applications-and-microservices-using-gin) * [How to Use Godog for Behavior-driven Development in Go et started with Godog](https://semaphoreci.com/community/tutorials/how-to-use-godog-for-behavior-driven-development-in-go) * Building Blockchain in Go * [Part 1: Basic Prototype](https://jeiwan.cc/posts/building-blockchain-in-go-part-1/) * [Part 2: Proof of Work](https://jeiwan.cc/posts/building-blockchain-in-go-part-2/) * [Part 3: Persistence and CLI](https://jeiwan.cc/posts/building-blockchain-in-go-part-3/) * [Part 4: Transactions 1](https://jeiwan.cc/posts/building-blockchain-in-go-part-4/) * [Part 5: Address](https://jeiwan.cc/posts/building-blockchain-in-go-part-5/) * [Part 6: Transactions 2](https://jeiwan.cc/posts/building-blockchain-in-go-part-6/) * [Part 7: Network](https://jeiwan.cc/posts/building-blockchain-in-go-part-7/) ## PHP: * [How To Build A Blog With Laravel](https://www.youtube.com/playlist?list=PLwAKR305CRO-Q90J---jXVzbOd4CDRbVx) * [Make Your Own Blog (in Pure PHP)](http://ilovephp.jondh.me.uk/en/tutorial/make-your-own-blog) * [Build A Real Estate Website Example with SilverStripe](https://www.silverstripe.org/learn/lessons/) * [Building Realtime Chat App with Laravel 5.4 and VueJS](https://www.youtube.com/playlist?list=PLXsbBbd36_uVjOFH_P25__XAyGsohXWlv) * [Build A Social Network: Laravel 5 - Youtube](https://www.youtube.com/playlist?list=PLfdtiltiRHWGGxaR6uFtwZnnbcXqyq8JD) ## OCaml: * [Implement a Language with LLVM in OCaml](https://llvm.org/docs/tutorial/#kaleidoscope-implementing-a-language-with-llvm-in-objective-caml) ## Ruby: * [Build a Network Stack with Ruby](https://medium.com/geckoboard-under-the-hood/how-to-build-a-network-stack-in-ruby-f73aeb1b661b) ### Ruby on Rails: * [Build Instagram From Scratch with Ruby on Rails](https://www.dropbox.com/s/9vq430e9s3q7pu8/Let%27s%20Build%20Instagram%20with%20Ruby%20on%20Rails%20-%20Free%20Edition.pdf?dl=0) * [Build a CMS with Ruby on Rails](https://pchm.co/posts/tutorial-how-to-build-a-cms-in-ruby-on-rails) * [Build a Social Network using Rails](https://medium.com/rails-ember-beyond/how-to-build-a-social-network-using-rails-eb31da569233) ## Haskell: * [Write You a Haskell - Build a modern functional compiler](http://dev.stephendiehl.com/fun/) * [Write Yourself a Scheme in 48 hours](https://en.wikibooks.org/wiki/Write_Yourself_a_Scheme_in_48_Hours) * [Write You A Scheme, Version 2](https://github.com/write-you-a-scheme-v2/scheme) * [Roll Your Own IRC Bot](https://wiki.haskell.org/Roll_your_own_IRC_bot) * [Let's Build A Basic Compiler in Haskell](http://alephnullplex.github.io/cradle/) * [Making Movie Monad](https://lettier.github.io/posts/2016-08-15-making-movie-monad.html) * [Making a Website with Haskell **(outdated)**](http://adit.io/posts/2013-04-15-making-a-website-with-haskell.html) ## R: * [Build Web Apps with Shiny](http://shiny.rstudio.com/tutorial/) ## Rust: * A Simple Web App in Rust * [Part 1](http://joelmccracken.github.io/entries/a-simple-web-app-in-rust-pt-1/) * [Part 2a](http://joelmccracken.github.io/entries/a-simple-web-app-in-rust-pt-2a/) * [Part 2b](http://joelmccracken.github.io/entries/a-simple-web-app-in-rust-pt-2b/) * [Write an OS in pure Rust](https://os.phil-opp.com/news/2018-03-09-pure-rust/) * [Build a browser engine in Rust](https://limpet.net/mbrubeck/2014/08/08/toy-layout-engine-1.html) * [Write a Microservice in Rust](http://www.goldsborough.me/rust/web/tutorial/2018/01/20/17-01-11-writing_a_microservice_in_rust/) * [Learning Rust with Too Many Linked Lists](http://cglab.ca/~abeinges/blah/too-many-lists/book/README.html) ## Swift: * [Hacking with Swift - Learn Swift by doing 39 projects](https://www.hackingwithswift.com/read) ## Additional Resources * [React Redux Links](https://github.com/markerikson/react-redux-links) * [Full Stack Python](https://www.fullstackpython.com/) * [Node School](https://nodeschool.io/) * [ScotchIO](https://scotch.io/) * [Exercism](http://www.exercism.io/) * [Egghead.io](http://www.egghead.io/) * [Michael Herman's Blog](http://mherman.org/) * [Thinkster.io](http://thinkster.io) * [C Project Based Tutorials](https://www.reddit.com/r/C_Programming/comments/872rlt/c_project_based_tutorials/)