Ballerina code sample for database related operations with JDBC which are exposed as API endpoints using a ballerina service. Underlying scenaio is a student management system where you can add edit and delete them. You can find the UI for the service at https://github.com/deshankoswatte/student-data-collector-frontend. Module overviews for the two modules manage_students
and students_service
can be found at the relevant module's Module.md
file, you can use it to gain a brief idea about the purpose of each module.
You should have installed:
- Ballerina or you can download and install it through https://ballerina.io/learn/installing-ballerina/.
- Clone the repository to a place of your preference using the command
git clone https://github.com/deshankoswatte/ballerina-sample-jdbc-operations.git
. - Open the cloned repository folder.
- Run the program using the command using
jdbc_operations.activate.sh
on the root folder. - Import the postman collection
student.postman_collection.json
located atsrc/students_service/resources/student.postman_collection.json
and try out the requests by changing the parameters or you can try it out with the frontend located athttps://github.com/deshankoswatte/student-data-collector-frontend
.
Contributions make the open source community such an amazing place to learn, inspire, and create. Any contribution you make to this project is greatly appreciated.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/NewFeature
) - Commit your Changes (
git commit -m 'Add some NewFeature'
) - Push to the Branch (
git push origin feature/NewFeature
) - Open a Pull Request
Distributed under the Apache License 2.0. See LICENSE
for more information.