-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Roberts Rozkalns
committed
Nov 14, 2023
0 parents
commit a6563df
Showing
19 changed files
with
5,338 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.idea | ||
.env | ||
.env.local | ||
/var/ | ||
/vendor/ | ||
/js/node_modules/ | ||
/public/build.* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
This is free and unencumbered software released into the public domain. | ||
|
||
Anyone is free to copy, modify, publish, use, compile, sell, or | ||
distribute this software, either in source code form or as a compiled | ||
binary, for any purpose, commercial or non-commercial, and by any | ||
means. | ||
|
||
In jurisdictions that recognize copyright laws, the author or authors | ||
of this software dedicate any and all copyright interest in the | ||
software to the public domain. We make this dedication for the benefit | ||
of the public at large and to the detriment of our heirs and | ||
successors. We intend this dedication to be an overt act of | ||
relinquishment in perpetuity of all present and future rights to this | ||
software under copyright law. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF | ||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. | ||
IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR | ||
OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, | ||
ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
OTHER DEALINGS IN THE SOFTWARE. | ||
|
||
For more information, please refer to <https://unlicense.org> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
### Project | ||
|
||
You can use this template by running the following command: | ||
```shell | ||
docker run --rm -it \ | ||
--volume $PWD:/app \ | ||
--user $(id -u):$(id -g) \ | ||
composer create-project citadaskola-2023/project-template <project_name> | ||
``` | ||
|
||
### How to get it started? | ||
1. Dependencies already are installed with `composer create-project` | ||
2. Start Project container (using [dunglas/frankenphp](https://github.com/dunglas/frankenphp) PHP image) | ||
```shell | ||
docker run -v $PWD:/app \ | ||
-p 80:80 -p 443:443 \ | ||
dunglas/frankenphp | ||
``` | ||
3. Build JS bundles (at the moment yarn has to be installed on host) | ||
```shell | ||
cd js; yarn; yarn run build | ||
``` | ||
4. Go to https://localhost, and enjoy! | ||
|
||
### Future expansions | ||
1. In order to use MySQL, libraries more has to be added - [ref](https://github.com/dunglas/frankenphp/blob/main/docs/docker.md#how-to-install-more-php-extensions) | ||
2. Bundles are baked into the image | ||
|
||
### Licence | ||
Unlicense | ||
* https://choosealicense.com/licenses/unlicense/ | ||
* https://en.wikipedia.org/wiki/Unlicense | ||
* https://spdx.org/licenses/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"name": "citadaskola-2023/fe-project-template", | ||
"authors": [ | ||
{ | ||
"name": "Roberts Rožkalns", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"type": "project", | ||
"license": "Unlicense", | ||
"minimum-stability": "stable", | ||
"prefer-stable": true, | ||
"autoload": { | ||
"psr-4": { | ||
"App\\": "src/" | ||
}, | ||
"files": [ | ||
"src/functions.php" | ||
] | ||
}, | ||
"require": { | ||
"php": ">=8.2" | ||
}, | ||
"require-dev": { | ||
"pestphp/pest": "^2.24", | ||
"symfony/var-dumper": "^6.3" | ||
}, | ||
"config": { | ||
"allow-plugins": { | ||
"pestphp/pest-plugin": true | ||
}, | ||
"sort-packages": true | ||
} | ||
} |
Oops, something went wrong.