Skip to content

sakshi19-dev/simple-php-api

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple PHP API

Instructions

Make sure to download and install xampp and composer in that order.

Setup a xampp mysql database with stories table with the following columns:

id INT PRIMARY KEY AUTO_INCREMENT,
title varchar(30) NOT NULL,
content text NOT NULL

Put/copy the project in the xampp installation directory under htdocs/app, i.e. <xampp_install_dir>/htdocs/app

Then install dependencies with the following command in the project directory.

composer update

Also set appropriate environment variables in .env file in project root.

DB_HOST = "localhost"
DB_USERNAME = "username"
DB_PASSWORD = "password"
DB_NAME = "tinytalks"

Then run the xampp apache and mysql server to start the api server.

About

Simple PHP API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 100.0%