Read-only mirror of https://github.com/yverdon/yvent_v2 — Ville d'Yverdon-les-Bains. Issues & pull requests at the source.
  • PHP 52.2%
  • Blade 32.9%
  • HTML 14.6%
  • Vue 0.2%
  • Dockerfile 0.1%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2018-10-02 13:42:40 +02:00
app setup roo url 2018-06-27 08:09:47 +02:00
bootstrap initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00
config last touch to tntsearch box 2018-04-04 12:19:19 +02:00
database add optional migration for redis predis 2018-04-03 15:17:29 +02:00
doc add ERD doc 2018-04-05 15:58:17 +02:00
phpdocker finalize docker config 2018-06-26 11:09:46 +02:00
public last touch to tntsearch box 2018-04-04 12:19:19 +02:00
resources hide fulltextsearch when user is not logged 2018-06-27 14:42:52 +02:00
routes use jquery-ui to implement fulltext search box on events. Style still to be set up 2018-04-03 17:08:10 +02:00
storage initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00
tests initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00
.env.example initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00
.gitattributes initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00
.gitignore ignore indexes 2018-04-03 15:16:00 +02:00
artisan initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00
composer.json add tntsearch to event 2018-04-03 15:16:30 +02:00
composer.lock last touch to tntsearch box 2018-04-04 12:19:19 +02:00
docker-compose.yml change file version 2018-06-26 11:21:14 +02:00
install_composer.sh install composer command - for documentation 2018-06-26 11:10:10 +02:00
package.json initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00
phpunit.xml initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00
README.md Update README.md 2018-10-02 13:42:40 +02:00
server.php initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00
webpack.mix.js initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00
yarn.lock initalize laravel 5.6 app 2018-03-28 16:09:44 +02:00

📅 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.