GithubHelp home page GithubHelp logo

fernandoalvarez28 / kotlin-crud-mongodb Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 63 KB

Kotlin CRUD with Spring WebFlux + Security + MongoDB

License: MIT License

Kotlin 88.13% Shell 0.68% JavaScript 9.44% Dockerfile 1.38% Makefile 0.38%
java kotlin mockoon mongodb spring-boot webflux webflux-security

kotlin-crud-mongodb's Introduction

Kotlin CRUD w/ MongoDB

Small project to experiment and learn Kotlin and other libraries.

Based on the Postgres CRUD: https://github.com/FernandoAlvarez28/kotlin-crud

Requirements

Contains/Uses

  • Java 17.
  • Dockerfile.
  • Basic REST API endpoints with Kotlin, Spring Boot 3.1.1 and Spring WebFlux.
  • MongoDB database via Docker.
    • Connection informations here.
  • Spring Security with JWT and Spring WebFlux.
  • Fake "Users API" with Mockoon via Docker.
  • Load test with K6 via Docker.

How to run

Locally

  1. Clone this repository.
  2. Import this project on your Kotlin capable IDE, like IntelliJ.
  3. Run the dockerized MongoDB database (or you can use your own MongoDB instance).
  4. Run the dockerized Mockoon.
  5. Run KotlincrudApplication.kt.
  6. Access the endpoints exposed at http://localhost:8080.
    1. Use the available Postman collection + environment.
    2. Use the login endpoint to generate a JWT token; it will be save on your active environment and used by the other endpoints.

Via Docker

  1. Clone this repository.
  2. Build the Dockerfile and run the Docker image with its dependencies using one of the methods:
  3. Run KotlincrudApplication.kt.
  4. Access the endpoints exposed at http://localhost:8080.
    1. Use the available Postman collection + environment.
    2. Use the login endpoint to generate a JWT token; it will be save on your active environment and used by the other endpoints.

kotlin-crud-mongodb's People

Contributors

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