https://github.com/evilfreelancer/codeline-laravel
The solution of a simple test task for Codeline.io
https://github.com/evilfreelancer/codeline-laravel
codeline docker docker-compose laravel php7
Last synced: 6 months ago
JSON representation
The solution of a simple test task for Codeline.io
- Host: GitHub
- URL: https://github.com/evilfreelancer/codeline-laravel
- Owner: EvilFreelancer
- Created: 2018-07-17T14:01:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-07-17T14:06:10.000Z (over 7 years ago)
- Last Synced: 2025-06-03T23:31:34.370Z (7 months ago)
- Topics: codeline, docker, docker-compose, laravel, php7
- Language: PHP
- Size: 165 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Codeline Laravel
On this test wan needed to implement simple application on Laravel,
with basic JS (optional), but as backend'er I've implement everything
only on PHP, without JS. By the way, this project is also packed to
Docker container, so you just need run it and all will work.
## How to use
### 1. Preparation
Clone the repo and change your work directory to root of sources
git clone https://github.com/EvilFreelancer/codeline-laravel.git
cd codeline-laravel
Now you need prepare docker compose config file:
cp docker-compose.yml.dist docker-compose.yml
Inside `docker-compose.yml` you need change the values to the ones you
need, for example you do not want to tun this project on `80` port, to
fix that you need just change this line `80:80` to what you need (`7777:80`).
Run first iteration of Docker environment
docker-compose up -d
### 2. Install all required components
I assume that there are no development tools on your computer, so you
need to login to Laravel container:
docker-compose exec laravel bash
Now need to install a lot of requirement dependencies
composer update
Fix write permition to some importnant folders
chown apache:apache bootstrap/ -R
chown apache:apache storage/ -R
End exit from container
exit
### 3. Import database dump
Now you need import database dump into the MySQL inside container:
mysql -uroot -proot_pass -h 127.0.0.1 homestead < laravel/homestead.dump
## The End
Now you just need open following page http://localhost in your browser
and you will get the result of my work.
Thanks for reading!