This is a React app with Flux 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
- Flux: actions, dispatchers and stores
- Data-driven tests
- Docker setup
Create an .env
file:
cp .env.example .env
Bootstrap the development environment:
bash/dev/start.sh
Click here for further details on the start.sh
script.
Finally, don't forget to add the following entry to your /etc/hosts
file:
172.21.0.1 meerkat.local
To find out the IP of the meerkat_nginx
container:
echo $(docker inspect -f '{{range .NetworkSettings.Networks}}{{.Gateway}}{{end}}' meerkat_nginx)
docker exec -it --user 1000:1000 meerkat_php_fpm ./vendor/bin/phpunit
Figure 1. Homepage
Figure 2. Login page
Figure 3. Reviews page
Figure 4. Bob adding a restaurant
Would you help make this app better?
- Feel free to send a pull request
- Drop an email at info@programarivm.com with the subject "Meerkat"
- Leave me a comment on Twitter
Thank you.