Commit 0a964f05 authored by Karamel's avatar Karamel
Browse files

Documentation for running Pasteque with the php standalone server.

parent 50df0fe1
......@@ -72,12 +72,20 @@ To initialize the database, use the sql scripts in `res/database/<type>/schema.s
#### Web server configuration
##### Apache
Make your web server point to `/src/http/public` and for apache. Make sure `AllowOverride All` is set for this directory for the `.htaccess` in there to work.
You should now call an API: `http(s)://<url_to_pasteque>/api/<route>`
Check your installation by requesting `http(s)://<url_to_pasteque>/fiscal/` you should be prompted to login, and you should be able to log if the user and database are correctly set.
##### PHP standalone server
This method is not recommended but could help in certain cases, mostly for developpement and debugging. Or when no server at all could be installed.
Start the PHP standalone server running `src/http/public/index.php` with the command `php -S <host>:<port> src/http/public/index.php`. Like `php -S localhost:8080 src/http/public/index.php` or `php -S src/http/public/index.php`.
### Install clients
Once the API is up and running, all is required now is some clients to connect to it. Pick a cash register client (Desktop or Android) and a backoffice client (admin or jsadmin) and you are ready to go.
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment