Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/walternascimentobarroso/exads


https://github.com/walternascimentobarroso/exads

Last synced: about 2 months ago
JSON representation

Awesome Lists containing this project

README

        

EXADS Logo

# 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  ❤️