Giter VIP home page Giter VIP logo

privacyweek-streaming-site's Introduction

PrivacyWeek Streaming Site

A page for watching the PrivacyWeek live streams.

Installation

You can either generate the site for a regular installation or use our docker file to run it with docker.

Regular installation

Clone this repository. Then install dependencies with

$ npm install

Generate the static site with

$ npm run generate

The generated site will be in /dist. Use any webserver to serve the content of that directory.

Installation with docker

Build the docker image with

$ docker build -t privacyweek-streaming-site:latest .

Then start the image with

$ docker run --publish 80:80 privacyweek-streaming-site:latest

Local development

Clone this repository. Then install dependencies with

$ npm install

Run the page in development mode with

$ npm run dev

The site should be available at localhost:3000 and should automatically reload when you make changes to the code.

Environment variables

You can create a file named .env to set specific environment variables for the environment you are currently running the page from. You can use this to e.g. change the URL where the page looks for the schedule file from pretalx or to activate date and time mocking.

Environment variables are available via process.env. We use these in nuxt.config.js to set certain parts of publicRuntimeConfig. All variables defined in publicRuntimeConfig are available in the code via $config.

For a list of variables that can be set in .env check the publicRuntimeConfig in nuxt.config.js.

Sample .env file

SCHEDULE_LOCATION=https://fahrplan.privacyweek.at/pw21/schedule/export/schedule.json
IS_DATE_TIME_MOCKED=true

Technologies used

This project uses Nuxt.js, a framework for building Vue.js applications. We configured Nuxt to generate the application as static site.

We use Video.js for the video player.

We use Bulma as our CSS framework. Additional CSS is written in Sass(SCSS).

We use ESLint for linting and Prettier for formatting the code.

Contributing

Feel free to contribute to this project. You can

  • open issues for bugs or suggestions
  • work on issues and submit pull requests

Tips

  • if you are working on code, please fork the project
  • if you are working on something, please assign the issue to yourself
  • if you have questions, comment in the issue or open a new issue

Linting and code formatting

If you are working on code, we recommend you set up ESLint and Prettier for linting and formatting. The configuration files are already included in the project and the ESLint and Prettier packages should already be installed when you run npm install. But you might need additional extensions for your IDE so that it will use prettier to format the code and ESLint to highlight potential errors.


Loading the schedule

Warning: this part of the readme might be out of date.

Local development

Download schedule.json from https://cfp.privacyweek.at/pw21/schedule/export/schedule.json and place it in static

Server deployment

When deploying a generated build, make sure the server regularly fetches the schedule.json and places it in the top-most level next to index.html.

privacyweek-streaming-site's People

Contributors

anne-victoria avatar devnan0 avatar cambid avatar columbia19 avatar maclemon avatar oe1rfc avatar

Watchers

James Cloos avatar

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.