Skip to content

A sample movie database application written in Ballerina to expose a database using a GraphQL API.

License

Notifications You must be signed in to change notification settings

ThisaruGuruge/movie-database

Repository files navigation

Movie Database

This is a sample Ballerina repository for a movie database. It demonstrates how to use Ballerina persistence support to store and retrieve data from a database and expose it as a GraphQL service.

Prerequisites

  1. Download and install Ballerina.
  2. Install Ballerina VSCode plugin.
  3. A MySQL database. Optionally, you can use the docker-compose file provided in the repository to start a MySQL database using Docker.

Getting Started

  1. Clone the repository.

  2. Navigate to the movie-database directory.

    cd movie-database
  3. Start the MySQL database using Docker.

    docker-compose up
  4. Generate the persistence layer by running the following command.

    bal persist generate
  5. Run the Ballerina service.

    bal run

About

A sample movie database application written in Ballerina to expose a database using a GraphQL API.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published