add data from work folder

This commit is contained in:
lubiana 2022-03-29 20:35:06 +02:00
parent 528ba365b4
commit 7052803761
Signed by: lubiana
SSH key fingerprint: SHA256:vW1EA0fRR3Fw+dD/sM0K+x3Il2gSry6YRYHqOeQwrfk
218 changed files with 16123 additions and 1233 deletions

View file

@ -17,7 +17,7 @@ So instead of doing that, create a folder in your project folder called `public`
Inside the `public` folder you can now create your `index.php`. Remember that you don't want to expose anything here, so put just the following code in there:
```php
<?php declare(strict_types = 1);
<?php declare(strict_types=1);
require __DIR__ . '/../src/Bootstrap.php';
```
@ -33,12 +33,12 @@ The rest of the public folder is reserved for your public asset files (like Java
Now navigate inside your `src` folder and create a new `Bootstrap.php` file with the following content:
```php
<?php declare(strict_types = 1);
<?php declare(strict_types=1);
echo 'Hello World!';
```
Now let's see if everything is set up correctly. Open up a console and navigate into your projects `public` folder. In there type `php -S localhost:8000` and press enter. This will start the built-in webserver and you can access your page in a browser with `http://localhost:8000`. You should now see the 'hello world' message.
Now let's see if everything is set up correctly. Open up a console and navigate into your projects `public` folder. In there type `php -S 0.0.0.0:1234` and press enter. This will start the built-in webserver and you can access your page in a browser with `http://localhost:1234`. You should now see the 'hello world' message.
If there is an error, go back and try to fix it. If you only see a blank page, check the console window where the server is running for errors.