Before running the project, make sure you have the following installed:
- Node.js and npm: Installation guide
- Angular CLI: Run
npm install -g @angular/cli
in your terminal. - Git: Installation guide
- JSON Server: Run
npm install -g json-server
for setting up a mock backend. - Code Editor: Download and install Visual Studio Code or any editor of your choice.
- Web Browser: Ensure you have a modern web browser installed.
(Optional) For Angular development, consider installing Angular DevTools on Chrome for better debugging.
git clone [your-repository-url]
cd [repository-name]
npm install
npm install -g json-server # If not installed
json-server --watch db.json # Assuming 'db.json' is your file
ng serve
After running the above command, the application should be accessible at http://localhost:4200/.
- src/app: Main application code.
- src/app/components: Angular components.
- src/assets: Static assets like images, icons, etc.
- src/app/scss: SCSS styles
- src/app/services: services like crud and auth
- orders.json: Mock database file for JSON server.
Displaying, adding, editing and deleting orders.
Made by Aleš Frelih: design