Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bonge-ian/subscriptions
https://github.com/bonge-ian/subscriptions
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/bonge-ian/subscriptions
- Owner: bonge-ian
- Created: 2023-07-15T12:29:52.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-07-15T12:34:20.000Z (over 1 year ago)
- Last Synced: 2023-07-15T14:28:37.922Z (over 1 year ago)
- Language: PHP
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Subscription Site
## How to install
Clone this repo in your local machine
```cd ``` into the cloned repository
Run the following
```composer install```
After installing dependencies
Run
```cp .env.example .env```
Configure the ```.env``` for the following keys
- APP_NAME
- DB_CONNECTION
- DB_HOST
- DB_PORT
- DB_DATABASE
- DB_USERNAME
- DB_PASSWORD=
- MAIL_MAILER=
- MAIL_HOST=
- MAIL_PORT=
- MAIL_USERNAME=
- MAIL_PASSWORD=
- MAIL_ENCRYPTION=The above will ensure that you have the database and app name configured.
Run
```php artisan key:generate```Run
```php artisan optimize:clear```
```php artisan optimize```
If you have your database configured, and want some test data,
Run```php artisan migrate:fresh --seed```
To run a command to notify users of a new post, run
```php artisan notify-subscribed-users```The above will push the jobs to the background.
You could either
1. Run ```php artisan queue:work --queue=notification-emails```
Or run task scheduler which will execute this every hour (preferred)
2. Run ```php artisan schedule:work```
For the postman collection, click on the link below.
3. [![Run in Postman](https://run.pstmn.io/button.svg)](https://app.getpostman.com/run-collection/11629432-3677e35b-82e7-43a2-a939-3eef1a0659a8?action=collection%2Ffork&source=rip_markdown&collection-url=entityId%3D11629432-3677e35b-82e7-43a2-a939-3eef1a0659a8%26entityType%3Dcollection%26workspaceId%3Dab556a5a-25a5-4b2c-bfb7-17c5a0b22025)