Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Portable local version on RaspberryPi #70

Open
5 of 7 tasks
will-saunders opened this issue Sep 23, 2019 · 2 comments
Open
5 of 7 tasks

Portable local version on RaspberryPi #70

will-saunders opened this issue Sep 23, 2019 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@will-saunders
Copy link
Owner

will-saunders commented Sep 23, 2019

It would be nice to have a version/branch of the app that could run locally on a raspberry pi without an internet connection.

I have a Raspberry Pi 3 and am starting to build.

Components needed:

  • Raspberry PI
  • NodeJS
  • MongoDB locally
  • App cloned from github
  • DB cloned from Mongo service
  • Some way of figuring out the server url on a lan
  • Some way of exporting the team config or results
@will-saunders will-saunders added the enhancement New feature or request label Sep 23, 2019
@will-saunders will-saunders self-assigned this Sep 23, 2019
@will-saunders
Copy link
Owner Author

Ok - I got it running.
Started with a bare Raspberry Pi 3 - 64bit architecture
Installed Ubuntu 18.04 server on microSDcard and booted
Set user pasword
Leaving the machine with no GUI desktop to keep speed reasonable
Installed Aptitude (sudo apt install aptitude) for easier package maintenance
Installed Avahi (gives the device a recognizable hostname even on a DHCP network)
Installed nodejs (sudo apt install nodejs)
Cloned the repo to /var/www/html (probably not the best place to put it)
Installed mongod (sudo install mongod)
Made a data directory for mongo as /home/ubuntu/data/db
Started a second ssh shell instance
Started mongo in the second shell with custom data path (mongod --dbpath /home/ubuntu/data/db)
Started keystone (cd /var/www/html/ACT/BCAT/survey-app/ then npm start)
Switch to web browser and open http://pi-act.local:3000

@will-saunders
Copy link
Owner Author

on first run it took about 5 seconds to load the landing page; about 10 seconds to log in; about 30 seconds to load keystone config. May need to stop some services on the pi.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant