A simple ToDo application implemented using CAP (Cloud Application Programming Model) with CDS, OData V4, and SAPUI5. This app allows users to create, check, and delete tasks, with tasks stored in an SQLite database on the server.
- Add new tasks
- Mark tasks as completed
- Delete tasks
- Persist tasks in an SQLite database using CAP
- CAP (Cloud Application Programming Model) for backend
- CDS (Core Data Services) to define entities and services
- OData V4 for data interaction
- SAPUI5 for frontend UI
- SQLite as the database
Ensure you have the following installed:
-
Clone the repository:
git clone https://github.com/yourusername/todo-app.git cd todo-app
-
Install dependencies:
npm install
-
Run the CAP backend:
cds run
-
Navigate to the
webapp
folder and start a local server for SAPUI5:cd app/todo/webapp ui5 serve
-
Open the app in your browser:
http://localhost:4004/webapp/index.html
/todo
βββ app/ # SAPUI5 Frontend
β βββ webapp/
β β βββ view/
β β βββ controller/
β β βββ model/
β β βββ index.html
βββ srv/ # CAP Service Implementation
β βββ service.cds
βββ db/ # Database Schema
β βββ schema.cds
βββ package.json # Dependencies and scripts
βββ README.md # Project Documentation
Method | Endpoint | Description |
---|---|---|
GET | /Task |
Get all tasks |
POST | /Task |
Create a new task |
DELETE | /Task(ID) |
Delete a task |