Skip to content

panosnethood/guestbook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 

Repository files navigation

MAZI Guestbook

Mazi-board or MAZI Guestbook is an application part of the MAZI toolkit for sharing ideas, photos and more, related to the specific place where a MAZI Zone is deployed, a form of digital Guestbook.

See here for more details and documentation: https://github.com/mazi-project/guestbook/wiki

And try it out here: http://demo.mazizone.eu:8081/

Server Requirements

  • mongodb installed
  • npm installed
  • node installed

Installation

  • go to src/node directory
  • run npm install
  • install pm2 globally : npm install pm2 -g
  • cp config.default.js config.js and change database credentials and username and password in auth section

Testing

  • start your mongodb server with mongod --dbpath <path_to_your_db>

    • create two alias within your .bash_profile:
    alias stop-mongodb='mongo admin --eval "db.shutdownServer()"'
    alias start-mongodb='mongod --fork --logpath <your_db_dir>/mongodb.log  --dbpath <your_db_dir>'
  • run npm test

Deploying

  • create startup service for mongodb

  • create startup service for pm2

    • if you are using systemd, type: pm2 startup systemd then follow the instructions
  • pm2 start main.js and pm2 save

  • standard port for server is 8081, configure nginx or apache to forward http requests on port 80 to node server

Credits

Mazi-board is an application developed initially by https://github.com/lutzer, to complement the Hybrid LetterBox: http://www.design-research-lab.org/projects/hybrid-letter-box/, with a local offline application to view, comment, and add new cards through a device.

As part of the MAZI toolkit is being further developed to be used as a generic application.

About

This is the MAZI Guestbook application

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 81.0%
  • CSS 14.1%
  • HTML 4.5%
  • Other 0.4%