Hey there! This is the Cash Register system for Mammas Källare! It's something that a bunch of overly-caffinated gamers hacked together in order to learn more about Angular and Node.JS.
Backend server should be running mKassa. Frontend can be run on a server, or on your local machine. Most likely you want to run it locally so it can connect to your printer.
Point the services for product and transaction so they talk the the server. Default is localhost.
If you intend to run it locally, one way would be to use the simpleserver.py script. Simply build, jump into the dist
folder, and run: ../simpleserver.py
. That will host everything on localhost:1234
.
You can of course host it through any web server. Just make sure to set it up so angular is happy (always serve index.html unless the file requested exists).
Install the qz-tray thing. In the settings file, make sure to override the certificate:
authcert.override=/path/mKassa-gui/src/assets/cert.pem
Edit the services to use the correct destination, e.g. by modifying localhost to whatever domain is correct:
private productsUrl = 'http://localhost:3000/product';
Run ng serve
for a dev server. Navigate to http://localhost:4200/
. The app will automatically reload if you change any of the source files.
This is mostly a few hints to myself when I need to fix something.
npm install -g @angular-cli
or something like that. Just Google it.mongod
. If it doesn't work, just read the error messages and make it happy.npm start
. If it doesn't work, make sure the dependencies are installed by running npm install
.ng serve
. If it doesn't work, make sure the dependencies are installed by running npm install
.