Giter Site home page Giter Site logo

springboot_mongodb_imdb_api's Introduction

Spring Boot MongoDB CRUD example - Restful CRUD API

Building Spring Boot MongoDB CRUD RESTful java application.

Created by : Alireza Gholamzadeh Lahroodi

Email Address : [email protected]

Config and Run Mongodb

alt_text

  1. Run docker command

pull mongodb image

alt_text

  1. Run container

docker run --name mongodb -p 27017:27017 mongo

alt_text

  1. Bash to container for crate user

docker exec -it mongodb bash

alt_text

  1. Go to mongo management

mongo

  1. Show db to use db

alt_text

  1. Use db for create user

use movie

  1. Create user and password

db.createUser({ user: "imdb", pwd: "imdb", roles: [ { role: "root", db: "movie" } ] })

View documentation

Use the following path to view the documentation produced by open-api and swagger use the following path, after the execution

Swagger url : http://localhost:8080/documentation.html

alt_text

Guide to Spring Session

Spring Session has the simple goal of free up session management from the limitations of the HTTP session stored in the server. The solution makes it easy to share session data between services in the cloud without being tied to a single container (i.e. Tomcat). Additionally, it supports multiple sessions in the same browser and sending sessions in a header. For enabling this feature, doing following :

alt_text
alt_text

Run application

mvn spring-boot:run

springboot_mongodb_imdb_api's People

Contributors

lahrudi avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.