Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/PDROJACK/surrealdb-springboot-starter

SurrealDB springboot starter kit
https://github.com/PDROJACK/surrealdb-springboot-starter

Last synced: about 6 hours ago
JSON representation

SurrealDB springboot starter kit

Awesome Lists containing this project

README

        

# Starter Kit for SurrealDB + SpringBoot

A starter kit todo app REST API using SpringBoot integrated with Surreal DB.

## Prerequisites:

- Java 21 and Maven >= 3.8.8
- Docker & Docker compose to start surrealDB if not installed locally.

## Getting Started

1. Clone the Repository:

```bash
git clone https://github.com/PDROJACK/surrealdb-springboot-starter.git
```

2. cd to the backend directory `surrealdb-springboot-starter`.

3. Inside the root of repository directory. Run below command to start SurrealDB:

```docker compose up```

4. Inside the root of repository directory. Run below command to start SurrealDB:

```mvn spring-boot:run```

## API Details
1. Postman Collection for the API is present in ```docs/SurrealDB.spring.postman.json```

2. OpenAPI definition can be accessed at this url after starting the app: http://localhost:8080/swagger-ui/index.html#/
![alt text](./docs/openapi.png)

3. [POST] Create Item
![alt text](./docs/post.png)

4. [GET] Get Item by ID
![alt text](./docs/getid.png)

5. [DELETE] Delete Item by ID
![alt text](./docs/deleteid.png)

6. [GET] Get All Items
![alt text](./docs/getall.png)

## Contributing

This starter kit is done as part of Hacketoberfest 2023 project.If you find any issues or have suggestions for improvements, please feel free to open an issue or create a pull request.

Happy coding!