Web components for LCR App
Requirements: node.js & npm react-scripts mongodb pm2 (recommended)
- Clone from github
- Execute install.sh - ". install.sh"
- Fill in config.json
- Start the server with "pm2 start server --name lcr" (recommended) or "node server.js"
Try this if the install.sh file does not work
- Copy "config.sample.json" into a new file "config.json"
- Fill in your preferred port number and MongoDB settings into config.json
- Open a console window in the /dashboard directory to install the React components for the admin pages
- Run "npm install" and "npm build" in this folder
- Enter "cd ../player to go to the public web folder
- Run "npm install" to set up the public web folder
- Type "cd .." to go back to the root directory
- Enter "npm start" to start the server
Execute update.sh to perform the following:
- Pull latest commit off GitHub
- Update any dependencies
- Rebuild React apps in /dashboard and /player
After updating, run "pm2 restart lcr" to restart the server
A script is provided to make initial user accounts in order to log into the system.
This can be found by opening a console window in the "script" folder and then executing node newuser.js. It will prompt you for a username and password
and, assuming the database is correctly configured, will create a new user.