Skip to content

Commit

Permalink
Merge pull request #1 from wayofdev/chore/structure
Browse files Browse the repository at this point in the history
chore: configure project name
  • Loading branch information
lotyp authored Nov 15, 2024
2 parents 2e51ec0 + bce7842 commit fc94dae
Show file tree
Hide file tree
Showing 13 changed files with 42 additions and 98 deletions.
4 changes: 2 additions & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ SHARED_SERVICES_NAMESPACE=ss
# in Docker network for current project
# More info:
# https://docs.docker.com/compose/reference/envvars/#compose_project_name
COMPOSE_PROJECT_NAME=spiral-starter-tpl
COMPOSE_PROJECT_NAME=spiral-app-temporal-demo

# You can disable logging for containers by setting "none" as log driver
DOCKER_APP_LOG_DRIVER=json-file
Expand Down Expand Up @@ -69,7 +69,7 @@ DB_LOG_QUERY_PARAMETERS=false
DB_WITH_DATETIME_MICROSECONDS=false
DB_FORWARD_PORT=5445
DB_PASSWORD=spiral
DB_DATABASE=spiral-starter-tpl
DB_DATABASE=spiral-app-temporal-demo
DB_USERNAME=spiral

CYCLE_SCHEMA_CACHE=false
Expand Down
2 changes: 1 addition & 1 deletion .github/.release-please-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"release-type": "php",
"packages": {
".": {
"package-name": "spiral-starter-tpl",
"package-name": "spiral-app-temporal-demo",
"changelog-path": "/CHANGELOG.md"
}
},
Expand Down
2 changes: 1 addition & 1 deletion .github/.release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "2.0.0"
".": "1.0.0"
}
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/1-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,8 @@ body:
value: |
📛 To ensure a smooth issue processing, please check if a similar bug report has already been submitted before creating a new one.
We highly value your contributions, so please make sure to familiarize yourself with our repository's guidelines:
- [Code of Conduct](https://github.com/wayofdev/spiral-starter-tpl/blob/master/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/wayofdev/spiral-starter-tpl/blob/master/.github/CONTRIBUTING.md)
- [Code of Conduct](https://github.com/wayofdev/spiral-app-temporal-demo/blob/master/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/wayofdev/spiral-app-temporal-demo/blob/master/.github/CONTRIBUTING.md)
Additionally, consider joining our discussions on:
- [WayOfDev Discord Community](https://discord.gg/CE3TcCC5vr)
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/2-feature-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ body:
value: |
📛 To ensure a smooth issue processing, please check if a similar feature request has already been submitted before creating a new one.
We highly value your contributions, so please make sure to familiarize yourself with our repository's guidelines:
- [Code of Conduct](https://github.com/wayofdev/spiral-starter-tpl/blob/master/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/wayofdev/spiral-starter-tpl/blob/master/.github/CONTRIBUTING.md)
- [Code of Conduct](https://github.com/wayofdev/spiral-app-temporal-demo/blob/master/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/wayofdev/spiral-app-temporal-demo/blob/master/.github/CONTRIBUTING.md)
Additionally, consider joining our discussions on:
- [WayOfDev Discord Community](https://discord.gg/CE3TcCC5vr)
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/3-failing-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ body:
value: |
📛 To ensure a smooth issue processing, please check if a similar bug report has already been submitted before creating a new one.
We highly value your contributions, so please make sure to familiarize yourself with our repository's guidelines:
- [Code of Conduct](https://github.com/wayofdev/spiral-starter-tpl/blob/master/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/wayofdev/spiral-starter-tpl/blob/master/.github/CONTRIBUTING.md)
- [Code of Conduct](https://github.com/wayofdev/spiral-app-temporal-demo/blob/master/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/wayofdev/spiral-app-temporal-demo/blob/master/.github/CONTRIBUTING.md)
Additionally, consider joining our discussions on:
- [WayOfDev Discord Community](https://discord.gg/CE3TcCC5vr)
Expand Down
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/4-docs-bug-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ body:
value: |
📛 To ensure a smooth issue processing, please check if a similar bug report has already been submitted before creating a new one.
We highly value your contributions, so please make sure to familiarize yourself with our repository's guidelines:
- [Code of Conduct](https://github.com/wayofdev/spiral-starter-tpl/blob/master/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/wayofdev/spiral-starter-tpl/blob/master/.github/CONTRIBUTING.md)
- [Code of Conduct](https://github.com/wayofdev/spiral-app-temporal-demo/blob/master/.github/CODE_OF_CONDUCT.md)
- [Contribution Guidelines](https://github.com/wayofdev/spiral-app-temporal-demo/blob/master/.github/CONTRIBUTING.md)
Additionally, consider joining our discussions on:
- [WayOfDev Discord Community](https://discord.gg/CE3TcCC5vr)
Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/5-security-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ body:
- type: markdown
attributes:
value: 'To create a new advisory, go to: [Create Security Advisory](https://github.com/wayofdev/spiral-starter-tpl/security/advisories/new)'
value: 'To create a new advisory, go to: [Create Security Advisory](https://github.com/wayofdev/spiral-app-temporal-demo/security/advisories/new)'

- type: textarea
id: github-advisory-url
Expand Down
8 changes: 4 additions & 4 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
# Security Policy

Thank you for helping keep `wayofdev/spiral-starter-tpl` and its users safe. We greatly appreciate your efforts to disclose security vulnerabilities responsibly.
Thank you for helping keep `wayofdev/spiral-app-temporal-demo` and its users safe. We greatly appreciate your efforts to disclose security vulnerabilities responsibly.

<br>

## 🚨 Reporting a Vulnerability

We take all security bugs in `wayofdev/spiral-starter-tpl` seriously. Please follow the instructions below to report security vulnerabilities.
We take all security bugs in `wayofdev/spiral-app-temporal-demo` seriously. Please follow the instructions below to report security vulnerabilities.

### → How to Report a Vulnerability

1. **GitHub Security Advisories**: Please report security issues directly through our GitHub Security Advisories page: [https://github.com/wayofdev/spiral-starter-tpl/security/advisories/new](https://github.com/wayofdev/spiral-starter-tpl/security/advisories/new). This ensures that sensitive information is handled confidentially.
1. **GitHub Security Advisories**: Please report security issues directly through our GitHub Security Advisories page: [https://github.com/wayofdev/spiral-app-temporal-demo/security/advisories/new](https://github.com/wayofdev/spiral-app-temporal-demo/security/advisories/new). This ensures that sensitive information is handled confidentially.

2. **Empty Security Issue**: After submitting through GitHub Security Advisories, please also create an empty security issue to alert us, as GitHub Advisories do not send automatic notifications. This can be done [here](https://github.com/wayofdev/spiral-starter-tpl/issues/new?assignees=&labels=type%3A+bug%2Cpriority%3A+high%2Ctype%3A+security&projects=&template=5-security-report.yml&title=%5BSecurity%5D%3A+).
2. **Empty Security Issue**: After submitting through GitHub Security Advisories, please also create an empty security issue to alert us, as GitHub Advisories do not send automatic notifications. This can be done [here](https://github.com/wayofdev/spiral-app-temporal-demo/issues/new?assignees=&labels=type%3A+bug%2Cpriority%3A+high%2Ctype%3A+security&projects=&template=5-security-report.yml&title=%5BSecurity%5D%3A+).

3. **Direct Contact**: For highly sensitive information, in addition to the GitHub Security Advisories, please email us directly at `[email protected]` with the subject line "SECURITY - Vulnerability Report". This will be treated with the highest priority.

Expand Down
56 changes: 0 additions & 56 deletions CHANGELOG.md

This file was deleted.

4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ else
WHITE := ""
RST := ""
endif
MAKE_LOGFILE = /tmp/wayofdev-spiral-starter-tpl.log
MAKE_LOGFILE = /tmp/wayofdev-spiral-app-temporal-demo.log
MAKE_CMD_COLOR := $(BLUE)

default: all
Expand All @@ -102,7 +102,7 @@ help: ## Show this menu
@echo
@echo ' 📑 Logs are stored in $(MAKE_LOGFILE)'
@echo
@echo ' 📦 Project spiral-starter-tpl (https://github.com/wayofdev/spiral-starter-tpl)'
@echo ' 📦 Project spiral-app-temporal-demo (https://github.com/wayofdev/spiral-app-temporal-demo)'
@echo ' 🤠 Makefile Author Andrij Orlenko (https://github.com/lotyp)'
@echo ' 🏢 ${YELLOW}Org wayofdev (https://github.com/wayofdev)${RST}'
@echo
Expand Down
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,20 @@

<p align="center">
<strong>Build</strong><br>
<a href="https://actions-badge.atrox.dev/wayofdev/spiral-starter-tpl/goto" target="_blank"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fwayofdev%2Fspiral-starter-tpl%2Fbadge&style=flat-square&label=github%20actions"/></a>
<a href="https://github.com/wayofdev/spiral-starter-tpl/actions/workflows/deploy-staging.yml?query=workflow%3ADeploy" target="_blank"><img alt="Deploy to Staging Status" src="https://img.shields.io/github/actions/workflow/status/wayofdev/spiral-starter-tpl/deploy-staging.yml?branch=develop&style=flat-square&label=deploy%20to%20staging&logo=github"/></a>
<a href="https://github.com/wayofdev/spiral-starter-tpl/actions/workflows/deploy-release.yml?query=workflow%3ADeploy" target="_blank"><img alt="Deploy to Production Status" src="https://img.shields.io/github/actions/workflow/status/wayofdev/spiral-starter-tpl/deploy-release.yml?style=flat-square&label=deploy%20to%20prod&logo=github"/></a>
<a href="https://actions-badge.atrox.dev/wayofdev/spiral-app-temporal-demo/goto" target="_blank"><img alt="Build Status" src="https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Fwayofdev%2Fspiral-app-temporal-demo%2Fbadge&style=flat-square&label=github%20actions"/></a>
<a href="https://github.com/wayofdev/spiral-app-temporal-demo/actions/workflows/deploy-staging.yml?query=workflow%3ADeploy" target="_blank"><img alt="Deploy to Staging Status" src="https://img.shields.io/github/actions/workflow/status/wayofdev/spiral-app-temporal-demo/deploy-staging.yml?branch=develop&style=flat-square&label=deploy%20to%20staging&logo=github"/></a>
<a href="https://github.com/wayofdev/spiral-app-temporal-demo/actions/workflows/deploy-release.yml?query=workflow%3ADeploy" target="_blank"><img alt="Deploy to Production Status" src="https://img.shields.io/github/actions/workflow/status/wayofdev/spiral-app-temporal-demo/deploy-release.yml?style=flat-square&label=deploy%20to%20prod&logo=github"/></a>
</p>
<p align="center">
<strong>Project</strong><br>
<a href="https://github.com/wayofdev/spiral-starter-tpl" target="_blank"><img src="https://img.shields.io/github/v/release/wayofdev/spiral-starter-tpl?style=flat-square" alt="Latest Stable Version"></a>
<a href="https://github.com/wayofdev/spiral-starter-tpl" target="_blank"><img alt="Commits since latest release" src="https://img.shields.io/github/commits-since/wayofdev/spiral-starter-tpl/latest?style=flat-square"></a>
<a href="https://github.com/wayofdev/spiral-starter-tpl" target="_blank"><img alt="PHP Version Require" src="https://poser.pugx.org/wayofdev/laravel-package-tpl/require/php?style=flat-square"></a>
<a href="https://github.com/wayofdev/spiral-app-temporal-demo" target="_blank"><img src="https://img.shields.io/github/v/release/wayofdev/spiral-app-temporal-demo?style=flat-square" alt="Latest Stable Version"></a>
<a href="https://github.com/wayofdev/spiral-app-temporal-demo" target="_blank"><img alt="Commits since latest release" src="https://img.shields.io/github/commits-since/wayofdev/spiral-app-temporal-demo/latest?style=flat-square"></a>
<a href="https://github.com/wayofdev/spiral-app-temporal-demo" target="_blank"><img alt="PHP Version Require" src="https://poser.pugx.org/wayofdev/laravel-package-tpl/require/php?style=flat-square"></a>
</p>
<p align="center">
<strong>Quality</strong><br>
<a href="https://app.codecov.io/gh/wayofdev/spiral-starter-tpl" target="_blank"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/wayofdev/spiral-starter-tpl?style=flat-square&logo=codecov"></a>
<a href="https://dashboard.stryker-mutator.io/reports/github.com/wayofdev/spiral-starter-tpl/develop" target="_blank"><img alt="Mutation testing badge" src="https://img.shields.io/endpoint?style=flat-square&label=mutation%20score&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fwayofdev%2Fspiral-starter-tpl%2Fmaster"></a>
<a href="https://app.codecov.io/gh/wayofdev/spiral-app-temporal-demo" target="_blank"><img alt="Codecov" src="https://img.shields.io/codecov/c/github/wayofdev/spiral-app-temporal-demo?style=flat-square&logo=codecov"></a>
<a href="https://dashboard.stryker-mutator.io/reports/github.com/wayofdev/spiral-app-temporal-demo/develop" target="_blank"><img alt="Mutation testing badge" src="https://img.shields.io/endpoint?style=flat-square&label=mutation%20score&url=https%3A%2F%2Fbadge-api.stryker-mutator.io%2Fgithub.com%2Fwayofdev%2Fspiral-app-temporal-demo%2Fmaster"></a>
<a href=""><img src="https://img.shields.io/badge/phpstan%20level-8%20of%209-brightgreen?style=flat-square" alt="PHP Stan Level 8 of 9"></a>
</p>
<p align="center">
Expand Down Expand Up @@ -172,13 +172,13 @@ Check full instructions in [docker-shared-services](https://github.com/wayofdev/

1. **Clone** repository:

After forking or creating generating repository from template, you can clone it to your local machine. In this example we will use `spiral-starter-tpl` repository as starting point.
After forking or creating generating repository from template, you can clone it to your local machine. In this example we will use `spiral-app-temporal-demo` repository as starting point.

```bash
git clone \
[email protected]:wayofdev/spiral-starter-tpl.git \
~/projects/spiral-starter-tpl && \
cd ~/projects/spiral-starter-tpl
[email protected]:wayofdev/spiral-app-temporal-demo.git \
~/projects/spiral-app-temporal-demo && \
cd ~/projects/spiral-app-temporal-demo
```

2. **Generate** `.env` file
Expand All @@ -188,7 +188,7 @@ Check full instructions in [docker-shared-services](https://github.com/wayofdev/
```bash
$ make env \
SHARED_SERVICES_NAMESPACE=ss \
COMPOSE_PROJECT_NAME=spiral-starter-tpl
COMPOSE_PROJECT_NAME=spiral-app-temporal-demo
```

**Change** generated `.env` file to match your needs, if needed.
Expand All @@ -198,7 +198,7 @@ Check full instructions in [docker-shared-services](https://github.com/wayofdev/
```bash
$ make env \
SHARED_SERVICES_NAMESPACE=ss \
COMPOSE_PROJECT_NAME=spiral-starter-tpl \
COMPOSE_PROJECT_NAME=spiral-app-temporal-demo \
FORCE=true
```

Expand All @@ -215,13 +215,13 @@ Check full instructions in [docker-shared-services](https://github.com/wayofdev/
$ make up
```

4. **Open** your browser and navigate to `https://api.spiral-starter-tpl.docker` to see Laravel welcome page.
4. **Open** your browser and navigate to `https://api.spiral-app-temporal-demo.docker` to see Laravel welcome page.

<br>

## 🧰 Project Architecture

The project architecture of `wayofdev/spiral-starter-tpl` follows a structured approach with distinct layers:
The project architecture of `wayofdev/spiral-app-temporal-demo` follows a structured approach with distinct layers:

* **Domain:** Contains core business logic and entities.
* **Bridge:** Connects the domain layer with external systems or services.
Expand All @@ -233,13 +233,13 @@ The project architecture of `wayofdev/spiral-starter-tpl` follows a structured a

Each layer has defined dependencies, ensuring a clear separation of concerns and facilitating maintainability and scalability.

For more information check [deptrac.yaml](https://github.com/wayofdev/spiral-starter-tpl/blob/develop/app/deptrac.yaml) located in repository `app` folder.
For more information check [deptrac.yaml](https://github.com/wayofdev/spiral-app-temporal-demo/blob/develop/app/deptrac.yaml) located in repository `app` folder.

<br>

## 🪄 Template

This project was generated from the [spiral/app](https://github.com/spiral/app) repository using the command: `composer create-project spiral/app spiral-starter-tpl` with the following selected options:
This project was generated from the [spiral/app](https://github.com/spiral/app) repository using the command: `composer create-project spiral/app spiral-app-temporal-demo` with the following selected options:

<details>
<summary>View Setup Options</summary>
Expand Down
Loading

0 comments on commit fc94dae

Please sign in to comment.