web
web copied to clipboard
Paperwork Web UI
web
Paperwork Web UI
General
This is a first try to build a web UI for Paperwork 2, based on Angular 9 and Material components.
Getting involved
Are you a front-end developer looking for a fun opensource project? I could use some help on this, get in touch!
Current state










GIFs (~8MB per file)
- Creating a new note
- Sharing a note
- Moving a note into a folder
- Filtering notes by tags
Docker
Environment Options
PAPERWORK_API_GATEWAY_PROTOCOL: The protocol the front-end should communicate with theservice-gateway,httporhttps.PAPERWORK_API_GATEWAY_HOST_PORT: The host/port combination under which the front-end can reach theservice-gateway, e.g.api.mydomain.com:8080. If you're using a standard port (80forhttpand443forhttps) you can simply specifyapi.mydomain.comhere.
Development
Prerequisites
In order to start development, you need to have the following tools installed:
- Node.js (Mac | Ubuntu Linux | Windows)
- make (Mac:
xcode-select --install| Ubuntu Linux:apt-get install make| Windows) - yarn (Mac | Ubuntu Linux | Windows)
- Paperwork Local Dev Env
Development server
- Open a terminal/command line and
cdinto this directory. - Run
yarn installif you haven't done it at all or haven't done it in a while, in order to install all required dependencies. - Run
make local-run-developfor a dev server. Even though the Angular development server runs on http://localhost:4200/, this setup uses Paperwork's local dev env, hence you should navigate to http://dev.www.paperwork.local:8000/ to access your local development instance. The app will automatically reload if you change any of the source files. Usemake local-runfor a production build.
Code scaffolding
- Open a terminal/command line and
cdinto this directory. - Run
yarn installif you haven't done it at all or haven't done it in a while, in order to install all required dependencies. - Run
ng generate component component-nameto generate a new component. You can also useng generate directive|pipe|service|class|guard|interface|enum|module.
Building
- Open a terminal/command line and
cdinto this directory. - Run
make local-build-developto build the project. The build artifacts will be stored in thedist/directory. Usemake local-buildfor a production build.
Running unit tests
- Open a terminal/command line and
cdinto this directory. - Run
ng testto execute the unit tests via Karma.
Running end-to-end tests
- Open a terminal/command line and
cdinto this directory. - Run
ng e2eto execute the end-to-end tests via Protractor.
Further help
- Open a terminal/command line and
cdinto this directory. - Type
ng helpor go check out the Angular CLI README.