eicas/website
4
1
Fork
You've already forked website
1
PHP 79.4%
Blade 20.4%
Nix 0.2%
kadir001 817d581a14 feature/download-icon ( #81 )
- Added is a new external svg download icon and it is implemented in Content.php.
- Furthermore the downloadlinktext is formatted to a more simple format, i.e. no formatextension and filesize at the end of downloadlinktext.
- (It's tested in the cms system and it gave good result!)
Co-authored-by: Kadir Akdemir <kadirakdemir75@gmail.com>
Reviewed-on: #81
Reviewed-by: Arnout Engelen <raboof@noreply.codeberg.org>
Co-authored-by: kadir001 <kadir001@noreply.codeberg.org>
Co-committed-by: kadir001 <kadir001@noreply.codeberg.org>
2026年01月05日 21:17:11 +01:00
.reuse specify license for mollie file 2024年02月19日 21:41:13 +01:00
app feature/download-icon ( #81 ) 2026年01月05日 21:17:11 +01:00
bootstrap Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
config add scout config 2025年06月12日 10:01:13 +02:00
database Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
LICENSES specify license for mollie file 2024年02月19日 21:41:13 +01:00
public feature/download-icon ( #81 ) 2026年01月05日 21:17:11 +01:00
resources Merge pull request 'Basic search functionality' ( #65 ) from search into main 2025年09月03日 21:41:39 +02:00
routes Final changes to SearchController 2025年08月29日 14:28:26 +02:00
storage Set up a fresh Laravel app 2021年05月17日 22:06:02 +02:00
stubs Added (Artisan) stubs for various new classes, with right code style. 2021年05月21日 10:56:24 +02:00
.editorconfig Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
.env.example Upgrade to PHP 8.2 and Laravel 9 2025年09月10日 21:01:22 +02:00
.gitattributes Manually add some licenses 2022年09月03日 18:49:15 +02:00
.gitignore simple script for monitoring hosting limits ( #44 ) 2023年03月12日 09:49:30 +00:00
.styleci.yml Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
artisan Remove three newlines that might cause trouble 2023年01月30日 10:28:30 +01:00
composer.json dependencies upgraded for Laravel 10, php8.2 2025年09月21日 15:45:50 +02:00
composer.json.license Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
composer.lock dependencies upgraded for Laravel 10, php8.2 2025年09月21日 15:45:50 +02:00
composer.lock.license License .gitignore and generated files as CC0-1.0 2022年09月03日 18:53:12 +02:00
datalimit_config-template.php Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
datalimit_config.php Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
docker-compose.yml.example Remove version from docker-compose.yml.example 2025年08月29日 16:51:55 +02:00
package-lock.json Started on CMS 2021年06月28日 09:54:09 +02:00
package-lock.json.license Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
package.json Format package.json 2023年02月07日 20:23:16 +01:00
package.json.license Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
phpunit.xml Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
README.md Upgrade to PHP 8.2 and Laravel 9 2025年09月10日 21:01:22 +02:00
server.php Add explicit licensing information for most resources 2022年09月03日 18:49:09 +02:00
shell.nix Upgrade to PHP 8.2 and Laravel 9 2025年09月10日 21:01:22 +02:00
webpack.mix.js Merge branch 'main' into add-mit-license 2023年01月29日 09:51:41 +00:00

About EICAS

European Institute for Contemporary Art and Science

See https://www.eicas.nl

This project houses the main EICAS website.

Prerequisites

  • php-cli
  • php-mysql
  • nodejs / npm
  • composer
  • a mariadb/mysql database, either from LAMPP, XAMPP, in docker, or natively

Running locally

Copy .env.example to .env and adapt it to your local needs. In particular make sure you have a mysql/mariadb database running and point the DB_ variables to it. Note: The php artisan key:generate command listed below creates a new (secret!) key for encrypting in the app. If the original key is lost, all encryted / hashed secrets will be lost as well. Thus, generating a new key (and with that overwriting the existing) will invalidate all user accounts. This command must only be run if that is intended (or if there is no key yet, for a completely new install, for example for a local test).

Building:

composer install
npm install
npm run prod
cp .env.example .env
php artisan key:generate
cp docker-compose.yml.example docker-compose.yml
# set matching db passwords in .env and docker-compose.yml
docker compose up -d
php artisan migrate:fresh --seed

Running:

php artisan serve

CMS

Log in to website's CMS by navigating to

http://localhost:8000/cms/

Login name: admin@example.com Password: hello

If you have a sql database file available to import into your local site's database, the above generic user account will be wiped out. It is possible to restore this standard account by removing the if-statement from /database/seeders/UserSeeder.php. (You can comment out lines 22 – 23 – 24 and 33 and save the file.)

Run:

php artisan db:seed --class=UserSeeder

Restoring a database backup:

docker exec -i $(docker ps | grep mariadb | cut -d " " -f 1) mysql -u $(cat .env | grep DB_USERNAME | cut -d "=" -f 2) $(cat .env | grep DB_DATABASE | cut -d "=" -f 2) -p$(cat .env | grep DB_PASSWORD | cut -d "=" -f 2) < ../eicas_site1-db-20220403.sql