An open API service indexing awesome lists of open source software.

https://github.com/arikato111/social-web-php

social web application with php
https://github.com/arikato111/social-web-php

mysql php social-media tailwindcss

Last synced: 3 months ago
JSON representation

social web application with php

Awesome Lists containing this project

README

        


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

- #### [social web react](https://github.com/Arikato111/social-web-react) -> this is the front-end website to working with api (not release)

- #### [social web flutter](https://github.com/Arikato111/social-web-flutter) -> android app with Flutter, It's just front-end to working with api.
- [download app or view release](https://github.com/Arikato111/social-web-flutter/releases)

## 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](http://localhost) on your browser
- login with the admin account
- username : `nawasan`
- password : `admin`

### with docker

docker is for example

- copy `.env.example` to `.env`
- run `make up` command
- change permissions for `public` directory
- open [localhost](http://localhost)

## Inside it

- PHP-8.1 + MySQL
- [Tailwindcss](https://tailwindcss.com)
- [control](https://github.com/Arikato111/control)
- [spelte](https://github.com/Arikato111/spelte-php)
- [use-import](https://github.com/Arikato111/use-import/tree/master)
- [spelte](https://github.com/Arikato111/spelte-php/tree/module)
- [dotenv](https://github.com/Arikato111/php-dotenv/tree/main)
- [wisit-router](https://github.com/Arikato111/wisit-router/tree/master)
- [wisit-express](https://github.com/Arikato111/wisit-express/tree/Release1.0)

## 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`