Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

(21-Feb-2024) A GDPR compliant Laravel 10.x language translations app with static pages.

License

Notifications You must be signed in to change notification settings

kkamara/translations-3-php-app

Repository files navigation

translations-php-reactjs-app.png

php-reactjs-boilerplate2.png

Translations 3 PHP App API

(21-Feb-2024) A GDPR compliant Laravel 10.x language translations app with static pages.

Using Thunder Client?

Thunder client Visual Studio Code extension.

thunder-collection_PHP Reactjs Boilerplate.json

Installation

# Create our environment file.
cp .env.example .env
# Install our app dependencies.
composer i
# Using Docker?
make dev && make backend-migrate
# Not using Docker?
php artisan key:generate
php artisan migrate --seed
npm install
npm run build

Usage

php artisan serve --port=3000

Api Documentation

php artisan route:list
# output
...
POST       api/user ............................ login › Api\UserController@login
GET|HEAD   api/user/authorize .................. Api\UserController@authorizeUser
POST       api/user/register ................... Api\UserController@register
...

View the api collection here.

Redis Queue

You can test the /job endpoint to invoke a job example you can then view at

alias sail='vendor/bin/sail'
sail artisan queue:listen redis --queue stuff
# output
[2022-04-16 13:30:17][KttOLxAyP6mnsNGScDLbKAgvxpJ7M0AA] Processing: App\Jobs\TestJob
[2022-04-16 13:30:17][KttOLxAyP6mnsNGScDLbKAgvxpJ7M0AA] Processed:  App\Jobs\TestJob

Unit Tests

php artisan test --filter api

View the unit test code here.

Browser Tests

alias sail='vendor/bin/sail'
sail dusk

Mail Server

You can test the /mail endpoint to send a test mail you can then view at :8025/.

docker-mailhog3.png

Mail environment credentials are at .env.

The mailhog docker image runs at http://localhost:8025.

Misc

See Github to Bitbucket Backup Repo Updater.

See PHP Docker Skeleton.

See Laravel 10 API 3.

See movies app.

See food nutrition facts search web app.

See ecommerce web.

See city maps mobile.

See ecommerce mobile.

See crm.

See birthday currency.

See php scraper.

See amazon scraper.

See python amazon scraper 2.

See wordpress with docker support.

The Makefile for this project contains useful commands for a Laravel application and can be found at laravel-makefile.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

BSD

About

(21-Feb-2024) A GDPR compliant Laravel 10.x language translations app with static pages.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published