This repository has all logic for create a poll and your questions, and have a back-end administration to see the answers to
This tutorial works with docker and docker-compose and it suppose that you have installed yet. If don´t you can visit official getting started guide from Docker page
Can install this project using Laradock.
- Clone repository
git clone [email protected]:matt987/api-poll2.git
- Get laradock submodule
git submodule init
git submodule update
- Create .env file for laravel
cp env-example .env
- Create .env file for laradock
cp env-example-laradock ./laradock/.env
- Build some containers
docker-compose build nginx mysql phpmyadmin redis workspace
- Start containers
docker-compose up -d nginx mysql phpmyadmin redis workspace
- Run migrations and seeders
docker-compose exec workspace bash
root@containerid:/var/www# php artisan migrate:fresh --seed
- Visit localhost in browser
- You have a default user, please remove than user for productions purpose
email => [email protected]
password => admin12345