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.