Giter Site home page Giter Site logo

fernanda-kipper / microservice-java Goto Github PK

View Code? Open in Web Editor NEW
15.0 1.0 1.0 69 KB

This repository contains a simple microservice example in Java built during a live in my Youtube Channel

Home Page: https://youtube.com/live/yACzWg9gUGM

Java 100.00%
feign feign-client java java-spring microservice

microservice-java's Introduction

Event Microservice

Java Spring Licence

This project is an API built using Java, Java Spring, H2 as the database.

The API was developed for my Youtube Channel, to demonstrate how to create and integrate microservices using Java Spring.

Table of Contents

Installation

  1. Clone the repository:
git clone https://github.com/Fernanda-Kipper/microservice-java.git
  1. Install dependencies with Maven

  2. Clone the Email Microservice repository and follow his installation process

git clone https://github.com/Fernanda-Kipper/desafio-backend-uber.git
  1. Adjust Email Microservice application.properties to run on port 8090
server.port=8090
  1. Run both Microservices

Usage

  1. Start the application with Maven
  2. The API will be accessible at http://localhost:8080

API Endpoints

The API provides the following endpoints:

GET EVENTS

GET /events - Retrieve a list of all events.
[
  {
    "id": "ae413540-515d-4add-8cd1-1702c7d280d7",
    "maxParticipants": 20,
    "registeredParticipants": 0,
    "date": "28/11/2023",
    "title": "Frontin Floripa",
    "description": "Evento Tech em Floripa!!"
  }
]

GET UPCOMING EVENTS

GET /events/upcoming - List all upcoming events (which the date is greather then current date).
[
  {
    "id": "ae413540-515d-4add-8cd1-1702c7d280d7",
    "maxParticipants": 20,
    "registeredParticipants": 0,
    "date": "28/11/2023",
    "title": "Frontin Floripa",
    "description": "Evento Tech em Floripa!!"
  }
]

POST EVENT

POST /events - Register a new event into the App
{
	"maxParticipants": 20,
	"registeredParticipants": 0,
	"date": "28/11/2023",
	"title": "Frontin Floripa",
	"description": "Evento Tech em Floripa!!"
}

POST REGISTRATION

POST /events/${id} - Register a user into a Event if event is not full
{
  "participantEmail": "[email protected]"
}

Database

The project utilizes H2 Database as the database.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request to the repository.

When contributing to this project, please follow the existing code style, commit conventions, and submit your changes in a separate branch.

microservice-java's People

Contributors

fernanda-kipper avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

aslanshemilov

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.