Warthog
This is a React app with Redux interacting with a Laravel API in a LEMP stack, a real-world full-stack example SPA.
- ACL (access control list)
- JWT authentication
- CRUD implementation
- REST API
- Redux
- Data-driven tests
- Docker setup
Set up the Environment
Create an .env
file:
$ cp .env.example .env
Bootstrap the development environment:
$ bash/dev/start.sh
Local Set up
To find out the IP of your warthog_nginx
container:
$ echo $(docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' warthog_nginx)
Then add the IP to your /etc/hosts
file:
172.21.0.1 warthog.local
Open your favourite web browser and type https://warthog.local
into the address bar.
Run the Tests
$ docker exec -it --user 1000:1000 warthog_php_fpm ./vendor/bin/phpunit
Screenshots
Figure 1. Homepage
Figure 2. Login page
Figure 3. Reviews page
Figure 4. Bob adding a restaurant
Contributions
Would you help make this app better?
- Feel free to send a pull request
- Drop an email at info@programarivm.com with the subject "Warthog"
- Leave me a comment on Twitter
Thank you.