This project was made for Spring Boot and MongoDB with Docker

Gitter

ProjectHow To UseCreditsLicense

Project

Mongo Express can be reached from localhost:8081

List all of books (GET)

image info

Add book (POST)

image info

Delete book (DELETE)

image info

Query with ID (GET)

image info

How To Use

To clone and run this application, you'll need Docker, Java 18 and Maven installed on your computer. From your command line:

# Clone this repository
$ git clone https://github.com/Mehmetulas98/SpringBootAPI

# Go into the repository
$ cd demo

# Create snapshot file under targe folder in Java project for Dockerfile
$ mvn clean package

# Build docker image with Dockerfile
$ docker build -t springboot-mongodb:1.0 .

# Run the app wih docker compose file
$ docker-compose -f docker-compose.yaml up 

# Add database and table
$ For use API add "BookStores" database and "Book" table inside of this database. 

Credits

This software uses the following technologies:

License

MIT