|
1 | | -# My Awesome Project |
| 1 | +Development web server for serverless-native PHP web apps. |
2 | 2 |
|
3 | | -This is the catchphrase: what does this project do and how is it unique? |
4 | | - |
5 | | -[](https://travis-ci.com/PHP-DI/PHP-DI) |
6 | | -[](https://packagist.org/packages/PHP-DI/php-di) |
7 | | -[](https://packagist.org/packages/PHP-DI/php-di) |
8 | | - |
9 | | -Here is an additional quick introduction, if necessary. |
| 3 | +**This project is currently experimental and the documentation incomplete.** |
10 | 4 |
|
11 | 5 | ## Why? |
12 | 6 |
|
13 | | -Why does this project exist? Come on, don't delete this part. Fill it. |
14 | | -Yes it's hard, but it's perhaps the most important part of the README. |
15 | | - |
16 | | -As to why *this* project exist, it's to serve as a template for future open |
17 | | -source PHP projects. Of course, feel free to fork it and make your own recipe. |
| 7 | +This web server is meant for HTTP applications implemented without framework, using API Gateway as the router and PSR-15 controllers. |
18 | 8 |
|
19 | 9 | ## Installation |
20 | 10 |
|
21 | | -Describe how to install the project/library/framework/… |
22 | | - |
23 | | -Make sure your installation instructions work by testing them! |
| 11 | +```bash |
| 12 | +composer require --dev bref/dev-server |
| 13 | +``` |
24 | 14 |
|
25 | 15 | ## Usage |
26 | 16 |
|
27 | | -Describe how to use the project. A gif or a short code example is the best |
28 | | -way to show how it works. Also keep paragraphs short and sentences simple: not |
29 | | -everybody speaks english well. |
30 | | - |
31 | | -For the sake of the example here is how you can use this project template |
32 | | -as a basis for your own repository: |
| 17 | +Run the webserver with: |
33 | 18 |
|
34 | 19 | ```bash |
35 | | -git clone https://github.com/mnapoli/project-template.git my-project |
36 | | -cd my-project |
37 | | -# Remove the git repository metadata |
38 | | -rm -rf .git/ |
39 | | -# Start a brand new repository |
40 | | -git init |
41 | | -git add . |
| 20 | +php -S 127.0.0.1:8000 vendor/bin/bref-dev-server |
42 | 21 | ``` |
43 | | - |
44 | | -Easy peasy! Now you just have to code. |
45 | | - |
46 | | -Make sure your examples work by testing them! I didn't test mine and I should feel ashamed. |
0 commit comments