Giter Club home page Giter Club logo

add-kubernetes-'s Introduction

Online-Store

  • Rest API which simulates the work of an online store.
  • Based on AWS Services and Spring Boot ecosystem technologies.
  • Created for learning purposes.

Prerequisites

  • JDK 17
  • Apache Maven 3.6.3
  • Docker Desktop

Tech stack

  • Spring
    • Boot 3
    • Data
    • Security
  • Security
    • JWT
    • TLS
  • Databases
    • Mongo DB
    • AWS Dynamo DB
  • Queues
    • AWS SQS
  • Topics
    • AWS SNS
  • Containerisation
    • Docker
  • Monitoring
    • ElasticSearch
    • Logstash
    • Kibana
    • Filebeat
  • Logging
    • Slf4j
    • Logback

Getting the project up and running

Get project running by

docker-compose --profile dev up

If this doesn't work use

docker compose --profile dev up

Working with REST API

  • OpenAPI Schema

    Schema in json

    http://localhost:8083/api/docs/schema

    Schema in yaml

    http://localhost:8083/api/docs/schema.yaml
  • Swagger UI page

    http://localhost:8083/api/docs/swagger-ui

Obtaining a token

Using Postman get Bearer token by running

http://localhost:8083/api/auth/register

Copy the token and insert into Auth tab

Testing authorisation

Run this GET request to test authentication

http://localhost:8083/api/products

Docker (Should be fixed)

Build the Docker image

docker build -t zufar_sunagatov/online-store:v1 .

Run the Docker image

docker run -it --rm -p 8081:8081 --name online-store zufar_sunagatov/online-store:v1

Push the image to Docker

docker login --username=zufar_sunagatov
docker tag zufar_sunagatov/online-store:v1 zufar_sunagatov/online-store:v1
docker push zufar_sunagatov/online-store:v1

Override our code style

1. Press โŒ˜ + , or Ctrl+Alt+S to open the IDE settings and select Editor | Code Style.
2. Check the box Enable EditorConfig support.
3. Apply the changes and close the dialog.

add-kubernetes-'s People

Contributors

sunagatov avatar vova200020 avatar alexkasuka avatar kalachyand avatar rvze avatar korzhhiik 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.