- Start the app containers using docker (nginx, mariadb, php-fpm):
cd back && docker-compose up -d
- Download composer and install Laravel framework and dependencies:
docker exec -it tst_app_fpm php composer.phar install
- Create the environment file using the template
cp .env.example .env
- Create a database with name "tst"
docker exec -ti tst_mariadb mysql -uroot -proot -e "CREATE DATABASE tst"
- Run laravel migrations and seeds to create schemas and data
docker exec -it tst_app_fpm php artisan migrate --seed
- Test the server response
curl -g 'http://localhost/graphql?query={memotests{id name images {id url}}}'
- Install React framework and dependencies
cd front && npm i
- Start the app
npm start