From 65701c8f82c5e160bbe3b8d511f3665e0fbdba6c Mon Sep 17 00:00:00 2001 From: hitlerrip Date: Sun, 3 Aug 2025 13:37:05 +0200 Subject: tmux script added a tmux script that sets up the dev environment for me --- README.md | 21 ++++----------------- 1 file changed, 4 insertions(+), 17 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 035059c..cb0735d 100644 --- a/README.md +++ b/README.md @@ -14,25 +14,12 @@ There is an included testing environment. Requirements are Docker and PHP. Docker is generally not needed, you can replace it with any other DB Server. PHP has to have the `pdo_mysql` driver enabled. -```sh -# start mariadb -cd ./backend/docker-test-env/ -docker compose up -d - -# start api -cd .. #./backend/ -php -S localhost:8000 - -# start frontend -cd ../frontend/ -npm i -npm run dev -``` - -You send requests to the API like this: +There is an included tmux script that starts all of the required servers. +If you have a slightly different set up or you did not install the dependencies, +it might still be relevant to find out what is to be done. ```sh -curl -X POST -d '{ "key": "value" }' http://localhost:8000/yourapifile.php +./tmux.sh ``` `index.php` automatically creates the required database tables if they do not already exist, so just request that API to have everything set up for you. -- cgit v1.2.3