diff options
author | hitlerrip <git@hitler.rip> | 2025-08-03 13:37:05 +0200 |
---|---|---|
committer | hitlerrip <git@hitler.rip> | 2025-08-03 13:37:05 +0200 |
commit | 65701c8f82c5e160bbe3b8d511f3665e0fbdba6c (patch) | |
tree | 8b45abd6c05fd2c98c64fa131f09fcb538164329 /README.md | |
parent | 906a467192418fe599857c4d78735aac99e7beed (diff) | |
download | hitler-clicker-65701c8f82c5e160bbe3b8d511f3665e0fbdba6c.tar.gz hitler-clicker-65701c8f82c5e160bbe3b8d511f3665e0fbdba6c.tar.bz2 hitler-clicker-65701c8f82c5e160bbe3b8d511f3665e0fbdba6c.zip |
tmux script
added a tmux script that sets up the dev environment for me
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 21 |
1 files changed, 4 insertions, 17 deletions
@@ -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. |