Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thisaruguruge/movie-database
A sample movie database application written in Ballerina to expose a database using a GraphQL API.
https://github.com/thisaruguruge/movie-database
ballerina graphql graphql-server mysql persistence
Last synced: about 23 hours ago
JSON representation
A sample movie database application written in Ballerina to expose a database using a GraphQL API.
- Host: GitHub
- URL: https://github.com/thisaruguruge/movie-database
- Owner: ThisaruGuruge
- License: apache-2.0
- Created: 2024-03-29T04:54:11.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-03-29T04:59:02.000Z (8 months ago)
- Last Synced: 2024-10-12T13:21:31.342Z (about 1 month ago)
- Topics: ballerina, graphql, graphql-server, mysql, persistence
- Language: Ballerina
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://ballerina.io/downloads/).
2. Install Ballerina [VSCode plugin](https://marketplace.visualstudio.com/items?itemName=WSO2.ballerina).
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.
```bash
cd movie-database
```3. Start the MySQL database using Docker.
```bash
docker-compose up
```4. Generate the persistence layer by running the following command.
```bash
bal persist generate
```5. Run the Ballerina service.
```bash
bal run
```