/portal_spa

Primary LanguageTypeScriptOtherNOASSERTION

Portal Spa

Portal Single Page Application

Angular SPA

www/portal_spa has index.html which serves angular assets portal-spa has angular nodejs source code

Test, Format, Lint

npm run test
npm run e2e
npm run lint
npm run format:check

Development

before starting the Angular development, start bench and sites with portal_spa app installed

cd apps/portal_spa/portal-spa
npm i
npm run start

Production

# from frappe-bench directory

bench get-app https://github.com/castlecraft/portal_spa

# optional to install erpnext
bench new-site testportalspa.localhost --install-app erpnext

bench --site testportalspa.localhost install-app portal_spa

cd apps/portal_spa
./build-spa.sh

cd ../.. # back to frappe-bench

This will -

  • build angular app
  • copy css to public/css
  • copy js to public/js
  • bench build (for creating symlink to directory)

License

MIT