Giter VIP home page Giter VIP logo

deerborg / webservice Goto Github PK

View Code? Open in Web Editor NEW
5.0 1.0 1.0 148 KB

This project consists of a web service for user registration. It includes a front-end developed with React and a back-end implemented with Spring Boot. Our project is still in development, and we welcome your contributions!

License: MIT License

Java 74.53% JavaScript 15.35% HTML 1.42% CSS 8.70%
example fullstack-development learning react springsecurity webservice

webservice's Introduction

WebService

This project contains a web service for user registration. It includes a front-end written in React and a back-end written in Spring Boot.

Installation

  1. Clone the project:
git clone <project-url>
  1. Navigate to the project directory:
cd <project-directory>
  1. Start the React application:
cd frontend
npm install
npm start
  1. Start the Spring Boot application:
cd ..
mvn spring-boot:run
  1. Visit http://localhost:5173 in your browser to view the application.

Usage

WebService provides a simple interface for user registration. The React application allows users to enter their name, email address, and password. This information is processed and saved via the UserController in the Spring Boot backend.

Endpoints

Create User Registration

  • URL: /api/v1/users
  • Method: POST
  • Description: Creates a new user registration.
  • Parameters:
    • username (string, required): User's username.
    • email (string, required): User's email address.
    • password (string, required): User's password.
  • Example Usage:
    POST /api/v1/users HTTP/1.1
    Content-Type: application/json
    
    {
        "username": "user",
        "email": "[email protected]",
        "password": "password123"
    }
  • Successful Response:
    {
        "status": "success",
        "data": {
            "id": 1,
            "username": "user",
            "email": "[email protected]"
        }
    }
  • Error Response:
    {
        "status": "error",
        "message": "Username already taken."
    }

License

This project is licensed under the MIT License. For more information, see the LICENSE.

webservice's People

Contributors

deerborg avatar

Stargazers

Rohat  avatar Beyzanur KESKİN avatar Yusuf Demirkılıç avatar İsa Nezih Sayılırbaş avatar Gürkan Sönmez avatar

Watchers

 avatar

Forkers

samr874

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.