- Angular
- Typescript
- HTML
- SCSS
- Firebase
Restaurant is a website created to order dishes.
As unlogged user you can browse the menu, use custom filters, change currency in which the prices are displayed and change number of dishes on the website.
To access other options you need to sign in. Thanks to AuthGuards you can't access other components without signing in.
There are 3 different types of accounts:
- customer
- manager
- admin
You can create new customer account or sign in using this data:
login | password | user |
---|---|---|
admin1@gmail.com | admin1@gmail.com | admin |
manager1@gmail.com | manager1@gmail.com | manager |
customer1@gmail.com | customer1@gmail.com | customer |
As logged user you can click on the dish image to see more details. In dish details view you can see dish description, rate and reviews. If you add dish to trolley you can add (only one) dish rate or review. Manager is not allowed to add rates or reviews.
After signing in you can add dishes to trolley. In trolley you can see your whole order or change number of added dishes.
Only admin has access to admin view. He can add/delete roles (admin, manager, customer) or ban/unban other users.
Admin and manager have access to dish manager. There they can change menu - update, remove or add dishes.
This project was generated with Angular CLI version 13.0.4.
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.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory.
Run ng test
to execute the unit tests via Karma.
Run ng e2e
to execute the end-to-end tests via a platform of your choice. To use this command, you need to first add a package that implements end-to-end testing capabilities.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI Overview and Command Reference page.