Skip to content

A simple To-Do app built with SAP CAP (CDS) and SAPUI5, using OData V4 and SQLite for backend data management. The app allows users to create, check, and delete tasks with a clean UI. πŸš€

Notifications You must be signed in to change notification settings

Andrew-A-A/ToDo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

ToDo App

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.

Features

  • Add new tasks
  • Mark tasks as completed
  • Delete tasks
  • Persist tasks in an SQLite database using CAP

Technologies Used

  • 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

Installation and Setup

Prerequisites

Ensure you have the following installed:

Steps to Run the Project

  1. Clone the repository:

    git clone https://github.com/yourusername/todo-app.git
    cd todo-app
  2. Install dependencies:

    npm install
  3. Run the CAP backend:

    cds run
  4. Navigate to the webapp folder and start a local server for SAPUI5:

    cd app/todo/webapp
    ui5 serve
  5. Open the app in your browser:

    http://localhost:4004/webapp/index.html

Project Structure

/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

API Endpoints

Method Endpoint Description
GET /Task Get all tasks
POST /Task Create a new task
DELETE /Task(ID) Delete a task

Screenshot

ToDo App UI

About

A simple To-Do app built with SAP CAP (CDS) and SAPUI5, using OData V4 and SQLite for backend data management. The app allows users to create, check, and delete tasks with a clean UI. πŸš€

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published