A project (Angular + Node.js) that allows interacting with a vending machine.
Credit to Jonjo Hemmens for the image (Art Station)
This project was generated using Nx. All applications are under the apps directory. This monorepo is made up of:
- api: this is the backend Node.js (Typescript) API service. The API will be available on http://localhost:4000.
- vending-machine: this the Angular frontend application. Navigate to http://localhost:4200/.
Run nx serve api to run the TS Node.js/Express API server.
Run ng serve vending-machine to start the frontend. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.
Run nx build my-app to build the project, where my-app is the name of the application you wish to build. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.
Run nx test api to execute the unit tests via Jest.
Run nx affected:test to execute the unit tests affected by a change.
Run ng e2e my-app to execute the end-to-end tests via Cypress.
Run nx affected:e2e to execute the end-to-end tests affected by a change.
Run nx graph to see a diagram of the dependencies of your projects.
