Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/walternascimentobarroso/exads
https://github.com/walternascimentobarroso/exads
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/walternascimentobarroso/exads
- Owner: walternascimentobarroso
- Created: 2024-01-24T13:49:05.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-01-24T14:28:06.000Z (11 months ago)
- Last Synced: 2024-04-11T20:58:03.902Z (9 months ago)
- Language: PHP
- Size: 163 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# EXADS - PHP Exercises
:scroll: Exads
Template for new projects using php and nginx inside docker containers
Table of Contents
- [Prime Numbers](src/PrimeNumbers/README.md)
- [ASCII Array](src/ASCIIArray/README.md)
- [TV_Series](src/TVSeries/README.md)
- [AB Testing](src/ABTesting/README.md):desktop_computer: Start Project
First clone the project:
```
git clone https://github.com/walternascimentobarroso/exads.git
```Make the build
_:bulb: NOTE: Before next step, check the variables in `.env` file_
```
make build
make composer
```To perform any exercise, access the project's bash
`make bash_php` or `docker-compose exec php bash` and run```
php public/{activity}
```_:bulb: NOTE: If the project is already compiled then just run the `make up` command_
:white_check_mark: Tests
To run the tests, just type `make test` or `docker-compose exec php composer test`
![tests](make-test.png)
:hammer_and_pick: Tools
- [VSCode](https://code.visualstudio.com/)
- [EditorConfig](https://editorconfig.org/)
- [Docker](https://www.docker.com/)
- [NGINX](https://www.nginx.com/)
- [PHP](https://www.php.net/)
- [PHPUnit](https://phpunit.de/)
- [MySQL](https://www.mysql.com/)
- [Composer](https://getcomposer.org/)
- [Makefile](https://www.gnu.org/software/make/manual/make.html):open_file_folder: Folder Structure
```
.
├── Makefile
├── README.md
├── composer.json
├── phpunit.xml
├── public
│ ├── ABTesting.php
│ ├── ASCIIArray.php
│ ├── PrimeNumbers.php
│ ├── TVSeries.php
│ └── index.php
├── src
│ ├── ABTesting
│ │ ├── AB.php
│ │ └── README.md
│ ├── ASCIIArray
│ │ ├── README.md
│ │ └── RandomAsciiArrayGenerator.php
│ ├── PrimeNumbers
│ │ ├── PrimeNumberPrinter.php
│ │ └── README.md
│ └── TVSeries
│ ├── Database.php
│ ├── README.md
│ ├── TVSeries.php
│ ├── TVSeriesSchedule.php
│ └── script.sql
└── tests
├── ABTesting
│ └── ABTest.php
├── ASCIIArray
│ └── RandomAsciiArrayGeneratorTest.php
├── PrimeNumbers
│ └── PrimeNumberPrinterTest.php
└── TVSeries
├── DatabaseTest.php
├── TVSeriesScheduleTest.php
└── script.sql
```:smiley_cat: Author
- [@walternascimentobarroso](https://walternascimentobarroso.github.io/)
---
Made with ❤️