Skip to content

Arikato111/social-web-php

Repository files navigation

php mysql tailwindcss

Social web php

Github License GitHub Issues GitHub Pull Requests GitHub Last Commit GitHub Contributors

This is a project to create a social media website to send teachers. but this can be production and I try to write a real use case.

Others

Get started

with apache

  • clone this repository
  • move all files and folders in this repository to ./htdocs
  • don't create others folder
  • import database.sql to your database
  • create .env like .env.example and enter your database connection
  • enter your firebaseConfig at './public/google-login.js'
  • yarn or npm i to install packages
  • if using linux don't forget to change permission public folders and all inside
  • open localhost on your browser
  • login with the admin account
    • username : nawasan
    • password : admin

Inside it

Need to know

  • about api method must use only GET, POST;
  • when use others method use $_GET['method'] to check method
  • when frond-end request with others method will use params in url : example /api/post?method=delete