The full documentation can be found here: https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-ubuntu-18-04
sudo apt install php-cli
sudo apt install composer
sudo apt install php7.2-mbstring
sudo apt install php7.2-simplexml
sudo apt install nodejs
sudo apt install npm
Connect to the MYSQL server with your favorite tool and run:
CREATE DATABASE laravel;
GRANT ALL PRIVILEGES ON *.* TO 'Some username here'@'localhost' IDENTIFIED BY 'Your Password here';
https://dashboard.ngrok.com/get-started and follow the steps listed here.
- make a note of the appid and appsecret
git clone https://github.com/gabibora/ajutam.git
cd ajutam
composer install
Create a copy of the .env.sample file and call it .env Update the following entries to match your env:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=[dbname]
DB_USERNAME=[dbuser]
DB_PASSWORD=[dbpassword]
php artisan key:generate
php artisan migrate --seed
php artisan passport:install
sudo npm install --global cross-env
npm install
npm run dev
php artisan serve
In a different tab:
./ngrok http 8000
Browse to https://localhost:8000 and you should see the application
Browse to the URL indicated by ngrok and you should see the application and be able to login.
Connect to the MYSQL server with your favorite tool and run:
select * from users;
make a not of the ID of the user you want to set as admin
UPDATE laravel.model_has_roles set role_id = 1 where model_id = [substitute with your user id];
docker-compose up -d
It might take a few minutes until it installs all dependencies and boots up the development servers (laravel and webpack). You can check the output using
docker-compose logs laravel
Run database migration and seed within Docker container
# Get laravel docker container ID from containers list
docker ps
docker exec -it <container ID> bash
# Where <container ID> is the "laravel" container ID (first 4 characters should be enough)
php artisan migrate --seed
php artisan passport:install
# exit
npm
commands are also supported:
docker exec -it <container ID> npm run watch
# Where <container ID> is the "laravel" container ID
...
You can stop the containers with:
docker-compose stop
or
docker-compose down # destroys the containers, but keeps the db and node_modules
- Tests system is under development
This project uses Envoy for deployment, and GitLab CI/CD. Please check Envoy.blade.php
and .gitlab-ci.yml
for more detail.
- Laravel - The PHP Framework For Web Artisans
- VueJS - The Progressive JavaScript Framework
- Element - A Vue 2.0 based component library for developers, designers and product managers
- Vue Admin Template - A minimal vue admin template with Element UI
This project is licensed under the MIT License - see the LICENSE.md file for details.