Skip to content

Continue from web 1 project about partic. add native php to backend

Notifications You must be signed in to change notification settings

Gino-Hariman/partic-native-php

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Partic- web 2 project

Continue from web 1 project. add backend with native PHP with react as frontend.


Installation

  1. Clone this repo to you xampp htdocs folder. it's should look like this C:\xampp\htdocs\partic.
  2. Run ./partic.sql script for your database.
  3. Setup ./config.php to your needs.
  4. Start Xampp apache and mysql server. you can skip turning on mysql if you have mysql service running.
  5. Make you way to partic client directory using CLI.
$ cd C:\xampp\htdocs\partic\client
  1. Run command below
$ yarn install
$ yarn start

OR

$ npm install
$ npm start
  1. React dev server should be running on port 3000.
  2. so go to http://localhost:3000 on your brwoser.

You need to have yarn or npm and xampp installed on your machine. npm came inside nodejs installation. refer to this Node js and Yarn for installation. pick one of them. for xampp installation refer to this Xampp

Structure

  • /api/... Restfull endpoints.
  • /lib/... Library function.
  • /config.php App configuration.
  • /sql/... SQL script.
  • /client/ Frontend

Library

  • send() http response plain/text
  • json() http response json
  • authorize() authorize user
  • authenticate() authenticate user

About

Continue from web 1 project about partic. add native php to backend

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 72.0%
  • PHP 21.3%
  • CSS 5.1%
  • HTML 1.6%