You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
Dustin Woods 8d183a991b Readme, instructions for makeing changes 4 vuotta sitten
libs No cache 4 vuotta sitten
.gitignore initial commit - forked, trimmed 5 vuotta sitten
README.md Readme, instructions for makeing changes 4 vuotta sitten
config.sample.js IMprove config sample 4 vuotta sitten
index.js initial commit - forked, trimmed 5 vuotta sitten
package.json Updated app module which fixes <<report>> bug 4 vuotta sitten
webpack.config.js Non production mode 4 vuotta sitten

README.md

HR Step 1 App

The following is a rough guide to running hranyday-express/hyanyday-app and making/publishing changes.

Running Locally

Get the code

git clone hranyday-express

git clone hranyday-app

npm link creates a symlink between hranyday-app and hranyday-express for development

cd hranyday-app

npm install

npm run build

npm link

cd hranyday-express

npm install

npm link @proqsolutions/hranyday-app

Make sure you have a config file

cp config.sample.js config.js

Start the app

(requires docker, alternatively you can setup a local mongodb)

npm run mongo

npm start

URLs

admin: http://localhost:8080/admin/ user: admin pass: proq5858

(Requires creation of token in the admin area) app: http://localhost:8080/app-1.0?token=[TOKEN]

Making Changes to hranyday-app

hranyday-app is where the content and styles reside.

Testing changes locally

npm run build

npm link

(refresh browser) (some changes require hranyday-express restart)

Troubleshoot: my changes are taking effect!

  • Make sure you setup a symlink correctly using npm link.
  • Make sure you run npm build to recompile the app package.

Publishing Changes Live

(increment version in package.json) git commit ...

npm publish (requires local user to be logged into npm and access to @proqsolutions organization)

cd hranyday-express

npm install --save hranyday-app@[YOUR_LATEST_VERSION]

git commit ...

git push live master

(live=root@165.227.27.142:/root/repos/app.git)