Skip to content

Kamieljv/watkanikdoen-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,091 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wat Kan Ik Doen webapp

Deploying for development

  • Copy .env.example to .env and add the following connection parameters
DB_CONNECTION=mysql
DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=watkanikdoen_app
DB_USERNAME=mysql
DB_PASSWORD=change-me
  • Generate a Laravel app key with php artisan key:generate
  • Run the Docker Compose with docker compose up -d --build
  • Install composer packages in the container docker compose exec app sh -c "composer install"
  • Run the migrations and seeders in the container docker compose exec app sh -c "php artisan migrate:fresh --seed"
  • Open localhost:8000 in your browser
  • Log in with the username admin@admin.com and password admin12345. Change the password after logging in.
  • Start the vite development mode with npm run dev on your local machine

Generate migrations and seeders

  • Generate migrations for all tables

php artisan migrate:generate

  • Or for one

php artisan migrate:generate --tables="my_table"

  • Generate seeders

php artisan iseed my_table

Web Traffic Analytics

For traffic analytics, we use Umami, which is an open-source and self-hosted framework that enables simple analytics (pageviews, devices used and referrers). The analytics server is hosted on http://analytics.watkanikdoen.nl/.

See also

Search Engine Optimization (SEO)

SEO tags are generated by artesoas/seotools. Config can be found in config/seotools.php. It is good practice to keep the sitemap.xml up to date. Update it with:

\Spatie\Sitemap\SitemapGenerator::create('<domain>')->writeToFile('public/sitemap.xml');

Cookie notice

Cookie notice is created with this package and only enables the umami site analytics once accepted.

Useful links

Package notes

Embedding

You can embed a part of the Watkanikdoen.nl website into your own webpage, using our 'widget'. The following exaxmple shows an example of an embedding.

<html>
    <iframe width="100%" height="500" src="https://watkanikdoen.nl/widget?limit=100&show_past=false" style="border: none" sandbox="allow-scripts allow-same-origin allow-popups" allowfullscreen >
    </iframe>
</html>

You can use the following parameters (all optional) to filter the results of the acties api:

  • q: The query string to search in title and description
  • keywords: A comma-separated list of keywords to filter
  • themes: an array of themes to filter by, e.g. ...&themes[]=16&themes[]=28&...
  • categories: an array of categories to filter by, same syntax as themes
  • organizer: the organizer id
  • coordinates: comma-separated latitude and longitude required for distance filter, e.g. ...&coordinates=52.04603756,5.68489658&...
  • distance: the maximum distance (in km) from coordinates an action have
  • show_past: boolean, whether to show past actions
  • limit: maximum number of actions to return

About

Watkanikdoen is a website that promotes activism by making all kinds of progressive initiatives accessible to a wide audience.

Topics

Resources

License

Stars

Watchers

Forks

Contributors