Giter Club home page Giter Club logo

website-workshop3's Introduction

Introduction to PHP and Postgres - Workshop 3

Build your own website with our one-day workshop on understanding PHP and Postgres. Learn how to,

  • Create a blog site.
  • Use PHP to develop the backend and Postgres as the Database.
  • Learn how to connect to db and fetch / insert data.
  • Display the data accordingly in the front end.

Prerequisites

Workshop environment setup

  • Check if Git, Docker, and Docker Compose are installed in on the system. Open the terminal and run the following command

    mis@mispl-lap-31:~$ git --version
    git version 2.25.1
    
    mis@mispl-lap-31:~$ docker --version
    Docker version 20.10.17, build 100c701
    
    mis@mispl-lap-31:~$ docker compose version
    Docker Compose version v2.6.0
    
    
  • Open terminal and run following command to create a folder called workshop

    mkdir workshop
    
  • Navigate to the folder workshop and clone the from your personal repo using git

    cd workshop
    
  • First fork the repo and clone Website-Workshop3 repo & go inside Webiste-Workshop3 folder

    git clone [email protected]:{yourName}/Website-Workshop3.git
    cd Website-Workshop3
    
  • To open folder in VS code editor

    cd ~/workshop/Website-Workshop3
    code .
    
  • Bring up the Simple Blog Container

    sudo docker-compose -f simple-blog/docker-compose.yaml up
    
                            or
    
    sudo docker compose -f simple-blog/docker-compose.yaml up
    
    
  • open up http://localhost:8080/ in your browse

What will you learn by the end of this workshop?

  • By the end of this workshop, you will learn what is PHP and Postgres.
  • You will learn how to build website using PHP and Postgres with the knowledge of HTML and CSS from previous workshop.
  • You will learn how to design and create a web application.
  • You will learn how to work with postgres database.

Schedule

Time Topics
09:30 - 10:00 [Recap - Workshop 2]
10:00 - 10:45 Databse Design
10:45 - 11:00 [Break]
11:00 - 11:30 Docker Compose Creation
11:30 - 11:45 Dockerfile Creation
11:45 - 12:00 Introduction to MVC
12:00 - 1:00 Building Blog Website
01:00 - 02:00 [Break]
02:00 - 05:00 Building Blog Website Contitued
05:00 - 05:15 [Q & A]
05:15 - 05:30 [Wrapping Up]

website-workshop3's People

Contributors

pshenoy-uc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.