Skip to content

Commit 96d7a40

Browse files
authored
Merge pull request #10 from HelloAsso/feature/token_generation
Feature/token generation
2 parents 0b5e1c5 + fa28352 commit 96d7a40

49 files changed

Lines changed: 2453 additions & 600 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,7 @@ composer.phar
22
/vendor/
33
public/node_modules/
44
.env*
5-
log.txt
5+
log.txt
6+
*.log
7+
8+
node_modules/

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ propagate that work, subject to this License. You are not responsible
451451
for enforcing compliance by third parties with this License.
452452

453453
An "entity transaction" is a transaction transferring control of an
454-
organization, or substantially all assets of one, or subdividing an
454+
organization, or substantially all Assets of one, or subdividing an
455455
organization, or merging organizations. If propagation of a covered
456456
work results from an entity transaction, each party to that
457457
transaction who receives a copy of the work also receives whatever

README.md

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ composer install
2929
```
3030

3131
Install frontend dependencies using npm:
32+
require node >22.12
33+
3234
```bash
3335
npm install
3436
```
@@ -52,8 +54,13 @@ To set up your database, execute the SQL migrations provided:
5254
php migrations/run.php
5355
```
5456

57+
### Step 5: Build dependancies if needed
58+
```bash
59+
npm run build
60+
```
61+
5562
## Running the Application
56-
Once you have configured your environment, start your PHP server to run the application:
63+
Once you have configured your environment, start your PHP server from public folder to run the application:
5764

5865
```bash
5966
php -S localhost:8000
@@ -78,7 +85,7 @@ Also update WEBSITE_DOMAIN from you env file
7885

7986
### Framework & Technologies
8087
- **Backend:** PHP 8.3 with Slim Framework 4
81-
- **Frontend:** Bootstrap 5.3, CountUp.js, Moment.js
88+
- **Frontend:** Bootstrap 5.3, CountUp.js, Moment.js, Vite.js
8289
- **Database:** MySQL
8390
- **Template Engine:** Twig
8491
- **Dependency Injection:** PHP-DI
@@ -90,18 +97,19 @@ Also update WEBSITE_DOMAIN from you env file
9097
```
9198
twitch-widget/
9299
├── public/ # Web root directory
93-
│ ├── css/ # Compiled CSS files
94-
│ ├── js/ # Compiled JavaScript files
100+
│ ├── dist/ # Compiled CSS and Javascript files
95101
│ └── index.php # Application entry point
96102
├── src/ # Application source code
97-
│ ├── Controllers/ # Request handlers
103+
│ ├── Assets/ # Assets folders (scss + js)
104+
│ ├── Controllers/ # Request handlers
98105
│ ├── Models/ # Data models
99106
│ ├── Repositories/ # Data access layer
100107
│ ├── Services/ # Business logic services
101108
│ ├── Middlewares/ # Request/response middleware
102109
│ └── views/ # Twig templates
103110
├── migrations/ # Database migration files
104-
└── vendor/ # Composer dependencies
111+
└── vendor/ # Composer dependencies
112+
└── node_modules/ # NPM dependencies
105113
```
106114

107115
### Key Components
@@ -160,12 +168,13 @@ Database schema is managed through SQL migration files in the `migrations/` dire
160168
- `07-improve-user-rights.sql`: User permissions
161169

162170
### Frontend Assets
163-
JavaScript and CSS files are organized in `public/js/` and `public/css/`:
171+
JavaScript and CSS files are organized in `src/Assets/js/` and `src/Assets/css/`:
164172
- **admin.js:** Admin panel functionality
173+
- **app.js:** App module loader
165174
- **alert.js:** Alert widget logic
166175
- **event.js:** Event widget logic
167176
- **stream.js:** Stream management
168-
- **main.css:** Global styles
177+
- **main.scss:** Global styles
169178

170179
### Environment Configuration
171180
Key environment variables include:

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@
77
"league/mime-type-detection": "^1.16",
88
"mailchimp/transactional": "^1.0",
99
"microsoft/azure-storage-blob": "^1.5",
10-
"monolog/monolog": "^3.8",
10+
"monolog/monolog": "^3.10",
1111
"php-di/php-di": "^7.0",
1212
"slim/slim": "^4.14",
1313
"slim/psr7": "^1.7",
1414
"slim/twig-view": "^3.4",
1515
"twig/intl-extra": "^3.18",
1616
"vlucas/phpdotenv": "^5.6",
17-
"slim/flash": "^0.4.0"
17+
"slim/flash": "^0.4.0",
18+
"filp/whoops": "^2.18"
1819
},
1920
"autoload": {
2021
"psr-4": {

composer.lock

Lines changed: 79 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)