Skip to content

JKtechhw/slideshow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slideshow

Overview

This app was created for Noc kostelů Polná 2022

Features

  • 5 types of slide (image, video, iframe, text, cooldown)
  • Administration
  • Resource monitor
  • Statistics
  • Notifications
  • Multiple cooldown lists
  • Dark / light theme

Dependences

  • NODE.js
  • NPM
  • MongoDB

Install dependences

Debian based

sudo apt install nodejs npm

Arch based

yay -S nodejs npm

Install MongoDB server from official website, or use cloud database like MongoDB atlas.

Instalation

1) Install packages over npm

In cloned repository directory run:

npm install

2) Change server port

Default port is 3000, you can change port in config/default.json

3) Create directory for content

Create directory "content" in public folder

4) Create .env file

In .env file provide "CONNECTION_STRING" for mongodb (default string for localhost)and "SECRET_KEY" for cookies (default random)

5) Setup database

Setup database and collection. Described in /docs

Run

In cloned repository directory run:

node server.js

Tip

Install pm2, if you want run node app as daemon pm2 website