Dustin Woods 8d183a991b | 4 vuotta sitten | |
---|---|---|
libs | 4 vuotta sitten | |
.gitignore | 5 vuotta sitten | |
README.md | 4 vuotta sitten | |
config.sample.js | 4 vuotta sitten | |
index.js | 5 vuotta sitten | |
package.json | 4 vuotta sitten | |
webpack.config.js | 4 vuotta sitten |
The following is a rough guide to running hranyday-express/hyanyday-app and making/publishing changes.
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
cp config.sample.js config.js
(requires docker, alternatively you can setup a local mongodb)
npm run mongo
npm start
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]
hranyday-app
is where the content and styles reside.
npm run build
npm link
(refresh browser) (some changes require hranyday-express restart)
(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)