Giter VIP home page Giter VIP logo

e-commerce-microservice's Introduction

E-Commerce-Microservice

Microservices

  • Config server

Dependancies:-

  1. Config Server (to make it as configuration server)

Steps to make Configuration service

-> go to main class and add @EnableConfigServer below SpringBootApplication

-> create application.yml file and add below code.

spring: profile: native application: name: config-server cloud: config: server: native: search-locations: classpath:/configurations

server: port: 8888

  • Discovery Server:-

Dependancies:-

  1. Config client (for fetching configuration)
  2. Eureka Server (for acting as discovery server)

Steps to make Discovery service

-> go to main class and add @EnableEurekaServer below @SpringBootApplication

-> create application.yml file and add below code.

spring: config: import: optional:configserver:http://localhost:8888 application: name: discovery-service

-> Also go to the config server resources/configurations folder and create discovery-service.yml file

eureka: instance: hostname: localhost client: registerWithEureka: false fetchRegistry: false serviceUrl: defaultZone: http://${eureka.instance.hostname}/${server.port}/eureka/ server: port: 8761

-> now go to http://localhost:8761 , here you will find one gui where all registered services will shown.

  • Customer Service:-

Dependancies:-

  1. Config client (for fetching configuration)
  2. Spring Web 
  3. Spring Data MongoDB
  4. Validation 
  5. Lombok

-> create application.yml file and add below code.

spring: config: import: optional:configserver:http://localhost:8888 application: name: customer-service

-> Also go to the config server resources/configurations folder and create customer-service.yml file

spring: data: mongodb: username: alibou password: alibou host: localhost port: 27017 database: customer authentication-database: admin server: port: 8090

e-commerce-microservice's People

Contributors

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