Skip to content

PDROJACK/surrealdb-springboot-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:
git clone https://github.com/PDROJACK/surrealdb-springboot-starter.git
  1. cd to the backend directory surrealdb-springboot-starter.

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

    docker compose up

  3. 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

  3. [POST] Create Item alt text

  4. [GET] Get Item by ID alt text

  5. [DELETE] Delete Item by ID alt text

  6. [GET] Get All Items alt text

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!

About

SurrealDB springboot starter kit

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages