https://github.com/cuba-platform/sample-portal
Example of a portal implemented using AngularJS
https://github.com/cuba-platform/sample-portal
cuba-sample
Last synced: about 1 year ago
JSON representation
Example of a portal implemented using AngularJS
- Host: GitHub
- URL: https://github.com/cuba-platform/sample-portal
- Owner: cuba-platform
- License: apache-2.0
- Created: 2016-05-16T14:30:24.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2019-03-26T13:10:44.000Z (over 7 years ago)
- Last Synced: 2025-03-16T21:48:46.436Z (over 1 year ago)
- Topics: cuba-sample
- Language: HTML
- Homepage: https://www.cuba-platform.com
- Size: 709 KB
- Stars: 2
- Watchers: 26
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Portal
This is a showcase CUBA application that contains a portal module with AngularJS client application.
* `MenuController` loads a list of items to display them for authenticated and anonimous users.
* The `web` folder contains a single-page website based on AngularJS which communicates with the main application through [REST API](https://doc.cuba-platform.com/manual-6.1/rest_api.html).
* `OrderListener` is an [entity listener](https://doc.cuba-platform.com/manual-6.1/entity_listeners.html) which is used to set a default status and user.
To see the example in action, do the following:
* Open the project in Studio
* Click *Run > Start application server*
* If you see the warning *Database does not exist ...*, click *Create DB in background*
* Go to `http://localhost:8080/app` and log in as `admin` / `admin` to see the main app
* Go to `http://localhost:8080/app-portal` and log in as `demo` / `demo` to see the portal module
Creating a new order:
* Go to `http://localhost:8080/app-portal` and log in as `demo` / `demo`
* Add to cart some items from menu
* Click *Place order*
* Go to `http://localhost:8080/app` and log in as `admin` / `admin`
* Open Orders browser to watch your order
You can change the status of your order via Order editor or you can set status `Canceled` by clicking *Cancel order* button in the portal application.
Creating a new position:
* Go to `http://localhost:8080/app` and log in as `admin` / `admin`
* Open Orders browser to add a new food item
* Refresh `http://localhost:8080/app-portal` to see it
Based on CUBA Platform 6.10.1
## Issues
Please use https://www.cuba-platform.com/discuss for discussion, support, and reporting problems coressponding to this sample.