- PHP 52.2%
- Blade 32.9%
- HTML 14.6%
- Vue 0.2%
- Dockerfile 0.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| app | ||
| bootstrap | ||
| config | ||
| database | ||
| doc | ||
| phpdocker | ||
| public | ||
| resources | ||
| routes | ||
| storage | ||
| tests | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| artisan | ||
| composer.json | ||
| composer.lock | ||
| docker-compose.yml | ||
| install_composer.sh | ||
| package.json | ||
| phpunit.xml | ||
| README.md | ||
| server.php | ||
| webpack.mix.js | ||
| yarn.lock | ||
📅 YVENT
Requirements
- Postgresql 9.6
- Docker 18 or higher
Getting started
Clone the repository:
git clone https://github.com/maltaesousa/yvent_v2.git yvent
DOCKER
Note for windows 10 users
After windows 10 restart, you might need to restart docker: https://github.com/docker/for-win/issues/1038
To setup the app inside a docker container
docker-compose build .
docker-compose up
Cheatsheet: execute command in container
docker-compose exec php-fpm bash
build the app: docker-compose build
- install php composer dependecies *
docker-compose run php-fpm composer install
- grant right on storage folder to www-data user*
chmod -R a+rw storage/
start the app: docker-compose up
Update tntsearch index
Don't forget that scout needs a directory with rw rights...
docker-compose run php-fpm ./artisan scout:import App\\Event
NON-DOCKER
Install the app:
cd yvent
composer install
Populate the database (Only for dev environement)
createdb -U postgres test
psql -U postgres -d test -f prepare.sql
pg_restore -U postgres -d test lv_yvent.dump
Last steps
The app needs a key in order to work properly:
copy .env.example .env
php artisan key:generate
If your app will run in another endpoint than /yvent, you need to change your custom endpoint in the /public/.htaccess file:
for example: www.host.com/custom_yvent
RewriteBase /custom_yvent/
Run the app (dev)
php artisan serve
Troubleshooting
Be sure Composer is using the right PHP (at least PHP 7.2)
In Windows, if you get PDO exception on attempt to login, you're probably not using postgres driver for PHP.
You should uncomment the line containing php_pdo_pgsql.dll in the php.ini file.
To find where is php.ini file you can type where php on cmd or which php on powershell.
Writing permissions are needed in /storage for logger. Without proper permission, the app won't work.