Skip to content

niklasmh/bursdagen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bursdagen

Local (with VLC player)

First install dependencies:

# shell
yarn

Now add videoes to the ./videoes folder (then reference them in the cloud (Cloud section below)):

./videoes/video1.webm
./videoes/video2.webm
...

You will also need to change the environment variables by adding a .env.local file:

# .env.local
CLOUD=http://bursdag.niklasmh.no
LOCAL=http://localhost:8999
REACT_APP_CLOUD=ws://bursdagws.niklasmh.no
REACT_APP_LOCAL=ws://localhost:8999

Then you need to run both tha backend and the frontend:

# shell
yarn birthday

Cloud (if you want to host it yourself)

First install dependencies:

# shell
yarn

Now add info about the videoes to the ./videoes/videoes.js file (you need to create the file) using this format:

// ./videoes/videoes.js
module.exports = [
  {
    name: 'Video 1',
    desc: 'Dette er video 1',
    file: 'video1.webm',
  },
  {
    name: 'Video 2',
    desc: 'Dette er video 2',
    file: 'video2.webm',
  },
]

Then you need the backend:

# shell
yarn server cloud

Then you need to run the frontend:

# shell
yarn start