https://github.com/fvucemilo/image-manipulation-laravel-api
Laravel Image Manipulation REST API
https://github.com/fvucemilo/image-manipulation-laravel-api
Last synced: 23 days ago
JSON representation
Laravel Image Manipulation REST API
- Host: GitHub
- URL: https://github.com/fvucemilo/image-manipulation-laravel-api
- Owner: fvucemilo
- Created: 2021-11-28T15:26:49.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-28T22:02:38.000Z (over 4 years ago)
- Last Synced: 2025-02-23T06:46:30.871Z (over 1 year ago)
- Language: PHP
- Size: 1.15 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Laravel Image Manipulation REST API
## Demo
Here is fully working Demo: https://image-manipulation-api.herokuapp.com/
You have to register first in order to generate access token and make API requests.
#### Test locally
Download [postman_collection.json](public/devtools/resize/postman_collection.json) file, import it in your postman and test locally.
## Prerequisites
#### PHP Extensions
`php-mbstring php-dom php-intl php-curl php-mysql php-gd`
## Basic installation steps
Before you start the installation process you need to have **installed composer**
1. Clone the project
2. Navigate to the project root directory using command line
3. Run `composer install`
4. Copy `.env.example` into `.env` file
5. Adjust `DB_*` parameters.
If you want to use Mysql, make sure you have mysql server up and running.
If you want to use sqlite:
1. you can just delete all `DB_*` parameters except `DB_CONNECTION` and set its value to `sqlite`
2. Then create file `database/database.sqlite`
6. Run `php artisan key:generate --ansi`
7. Run `php artisan migrate`
### Installing locally for development
Run `php artisan serve` which will start the server at http://localhost:8000
### Installing on production
1. Create a virtual host file
2. Enable it
3. Reload apache
Virtual host template.
```apacheconf
ServerName yourproductiondomain.com
ServerAlias www.yourproductiondomain.com
DocumentRoot /project-installation-path/public
Options -Indexes +FollowSymLinks
AllowOverride All
Require all granted
ErrorLog /path-to-logs-folder/error.log
CustomLog /path-to-logs-folder/access.log combined
```
If you installed the project using apache and have any issues regarding permissions when installing on production,
do the following.
1. Add the project owner user in `www-data` group
```shell
sudo usermod -a -G www-data project-owner-user
```
2. Change the owner of several folders into `www-data` user
```shell
chown www-data:www-data storage/ -R
chown www-data:www-data public/images
```
## Contributing
Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions).
## Code of Conduct
In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct).
## Security Vulnerabilities
If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed.
## License
The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).