/meerkat

Full-stack app for learning purposes: React and Flux interacting with a Laravel API in a LEMP stack.

Primary LanguagePHP

Meerkat

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

Set up the Environment

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.

Local Set up

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)

Run the Tests

docker exec -it --user 1000:1000 meerkat_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?

Thank you.