Heavy-lifting is an open source web platform designed for the development of expert systems. Heavy-lifting is a design platform, focused on the creation of complex component, assembly and report design. Heavy-lifting is designed to develop complex cataloguing systems. Deploy as a boilerplate directly off GitHub. It is open-source and light weigh…
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
controllers
models
plugins
public
views
.gitignore
LICENSE.txt
Procfile
README.md
app.json
index.js
package-lock.json
package.json

README.md

Installation Instructions

If you would like to install heavylifting on your local development machine heavylifting requires the following components:

Node.js
MongodB
The GitHub heavylifting repo
expressjs

In more detail.

Install Node.js Download and install from the Node.js homepage.

https://nodejs.org/en/ 

Install mongodB | follow the set-up instructions on the website. (The trick is to create the c:/data/db directory then run mongod.exe). When in doubt the documentation on the site is very good. Download and install from the mongodB homepage.

https://www.mongodb.com/ 

Sign up for GitHub, install the windows GitHub client then clone the heavylifting repository.

Clone the repository on your hard drive, using the "clone or download" button on the GitHub front page for heavylifting.

https://github.com/Isithelo/heavylifting.git

Once downloaded, extract to the directory of your choice. For example:

C:\heavylifting

With node.js installed, the use of the NPM (Node Package Manager) service is now available from your command prompt, go into the directory where heavylifting was cloned using your preferred command prompt (DOS interface). For example:

cd\heavylifting

When you are at the command prompt in the correct directory, type in the following:

npm install npm@latest -g

The NPM service will now download and install into the cloned directory. The NPM service will now download and install into the cloned directory. When completed, enter the following:

npm install

To make life much easier, install nodemon. Nodemon provides some welcome server management for troublesome server crashes, type into the cmd(command) prompt:

npm install -g nodemon

Robomongo is a very useful tool for viewing the mongodb database structure. Install from their website.

Download and install from the mongodb homepage.

https://robomongo.org/

The .ENV File.

All of the magic on your localhost is managed by the .ENV file , here you would add your smtp host setting , recaptcha keys etc. Some example values are shown below.

When installation is done on Heroku , the keys should be added to the Settings tab , in the "reveal config variable" area.

SESSION_SECRET='6681esdf3a9cb922b14ff4b5b3a9b03f95ba520e017f5a23453f6e2792965d4e063'

MONGODB='localhost'

GOOGLE_ID='942595912716-lrvbstvgdfd8em4sugjmvsu3jk6p6tgo0m74.apps.googleusercontent.com' GOOGLE_SECRET='9G5ZoRffKQ-cKiT9M0Ahsb2E4g'

GITHUB_ID='800aa9e14a3asd6b3e981f2' GITHUB_SECRET='a87511fe094gdffde0b71de968691cbdb23265cf4f0'

SITE_KEY='6Le2aCcUAAAAAO8g693sddE9uMACIv7L-DeAbDZc67-' SECRET_KEY='6Le2aCcUAAAAANzOY5iqXP94Kc76sas8FsZr1kxBMMZ'

MAIL_PORT='451' MAIL_USERNAME='bla@bla.com' MAIL_PASSWORD='--- add your details here ---'

Getting data for your localhost server

Run mongorestore from the system command line, not the mongo shell.

The details below will allow the cmd prompt to extract the database off the server to use as as a starting point. You will need to create a new mongo database on your local machine. This can be done through the Robomongo client (RIGHT CLICK ON THE SERVER AND CREATE DATABASE "TEST"). This will delete your current local host database, Be careful!

mongodump -h ds163156.mlab.com:63156 -d heroku_g6k9j63s -u heroku_g6k9j63s -p t6e1adq1dsmn5p25klnl60dcbb -o ~/test
mongorestore -h localhost:27017 -d test ~/test/heroku_g6k9j63s