Git Product home page Git Product logo

tech-website's Introduction

Public Website WordPress Tech Meetup Berlin

Public website for the WordPress Tech Meetup Berlin.

https://tech.wpmeetup-berlin.de/

Local Installation

If you don't have composer installed, please do this first: https://getcomposer.org/download/

Then install the dependencies and run the setup script

composer install && /usr/bin/env php ./vendor/bin/dep --file=setup.php setup

If you want to start the local dev server you have three options:

  • grunt will start all servers and create and cleanup assets
  • grunt fast will start the local php server and in addition proxy the requests through browserSync
  • grunt php will only start the local php server

Note

Do not commit the database file if you're starting a pull request. The database is only part of the repo, to get you the content of the production website in your dev environment.

tech-website's People

Contributors

hofmannsven avatar svenbrier avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

tech-website's Issues

NPM install not part of setup

The installation of node packages is not part of the setup script, if someone runs the script and tries to run the local server they'll get the following:

screen shot 2018-05-23 at 08 23 34

Create /about page

Let's have a quick discussion in this ticket what should go on an about page.

SQLite Integration plugin doesn't run

On my machine (Ubuntu 18.04) after successfully running the install script, running grunt --force results in the following error message:

Warning: mysqli_real_connect(): (HY000/1045): Access denied for user ''@'localhost' (using password: NO) in /home/anselm/code/tech-website/web/wp/wp-includes/wp-db.php on line 1531
Error establishing a database connection
[...]

In SQLite, the sqlite-integration plugin is activated:

> select * from berlin_options where option_name LIKE '%plugin%';
33|active_plugins|a:6:{i:0;s:33:"disable-emojis/disable-emojis.php";i:1;s:45:"disable-wordpress-updates/disable-updates.php";i:2;s:13:"ghcp/ghcp.php";i:3;s:30:"no-self-ping/no-self-pings.php";i:4;s:27:"redis-cache/redis-cache.php";i:5;s:41:"sqlite-integration/sqlite-integration.php";}|yes
81|uninstall_plugins|a:1:{s:41:"sqlite-integration/sqlite-integration.php";a:2:{i:0;s:17:"SQLiteIntegration";i:1;s:9:"uninstall";}}|no

Without the --force option, grunt stops directly upon encountering a 500 response from the dev server.

Add favicon and touch-icon

Create and add a favicon and also a touch-icon in the different sizes to show up in the browser's address bar.

Setup with GitHub credentials

I'm not sure where to create the GitHub webhook expected in the setup process and why it is necessary.

Do you want to add credentials for the GitHub API? [y/N]

The purpose of the webhook is not clear to me.
Thus I cannot reconstruct where to create the GitHub webhook. Is it a webhook for the repository or a personal access token? Furthermore, I'd like to know the required scope/permissions for the webhook.

@alpipego Feel free to drop me a short note. I'm going to document the setup process as soon as I figured it out.

Fatal error if there is no Meetup API key

Without an API key I keep getting the following fatal error:

Fatal error: Uncaught TypeError: Argument 1 passed to WpBerlin\MeetupApi\Provider::__construct() must be of the type string, null given, called in /tech-website/web/plugins/meetup-api/meetup-api.php on line 27 and defined in /tech-website/web/plugins/meetup-api/src/Provider.php:19

As hinted in the error message above, the parameter type string of $apiKey seems to cause this error:

public function __construct(string $apiKey, array $eventHosts)

Grunt fails with SCSS error

After a clean install grunt fails with the attached error on my machine. Adding github-markdown-css as a devDependency fixes the issue, but it seems it can be handled without adding the dependency given we have generate-github-markdown-css as a dependency.

➜  tech-website git:(master) grunt                        
Running "clean:default" (clean) task
>> 2 paths cleaned.

Running "sass:default" (sass) task
>> Error: File to import not found or unreadable: ../../node_modules/github-markdown-css/github-markdown.
>>         on line 1 of assets/scss/github.scss
>> >> @import "../../node_modules/github-markdown-css/github-markdown";
>> 
>>    ^
Warning:  Use --force to continue.

Aborted due to warnings.

Homepage Content

We should have some content on the homepage, that's either there in addition to the upcoming meetup(s) or as a fallback.

Right now, if we don't have an upcoming meetup the homepage will just be blank.

Add title and description

Add title tag and meta description to the home page.
Question: Do we need something like a tagline?

Decouple Theme from Meetup API Plugin

The content output of the Meetup API Plugin should be done from the theme, not the plugin. The plugin should only provide the data needed instead of formatting and outputting it.

Error install node packages

npm WARN tar ENOENT: no such file or directory, open '/app/node_modules/.staging/node-sass-231f7636/src/libsass/src/sass_context.cpp'
npm ERR! code EINTEGRITY
npm ERR! sha512-ZtksUxOF7J8tT9HjYWhSJhgQ6sFcQwUpx47avL/13N1p5PY0M2LkvLD1RV8TE4IOZwLZJ4BQkzdMhtyEwRN79g== integrity checksum failed when using sha512: wanted sha512-ZtksUxOF7J8tT9HjYWhSJhgQ6sFcQwUpx47avL/13N1p5PY0M2LkvLD1RV8TE4IOZwLZJ4BQkzdMhtyEwRN79g== but got sha512-qNVaiv/7euaIWY//sx3ZNxR8isc2NscFlEGrQ+zu/AG400FSZSyNshPvMbMndFfOaR3P3mCMo3WgIm6+79aK0g==. (19814 bytes)

I am unable to install the node packages. Even with the lastest node JS (from within docker). Is someone able to install it right now?

Create /impressum

Should be in German.

@tichypress @svenbrier could you please take care of this? Just paste the text in this ticket.

Header too big probably?

I noticed that maybe the header is too big. Especially when you zoom the page in, the header easily takes up ~30% of the page.

Please asses the situation and add your voice to this ticket.

Remove Database Config From Setup Process

In general, the included SQLite database should be used in development as it makes it easier for users to see content directly after setup (e.g., if they're not willing/able to set up their own GitHub app).

If a user wants to use their DB, they'll still be able to do it by changing the config file manually.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.