Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deerborg/webservice
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!
https://github.com/deerborg/webservice
example fullstack-development learning react springsecurity webservice
Last synced: about 2 months ago
JSON representation
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!
- Host: GitHub
- URL: https://github.com/deerborg/webservice
- Owner: deerborg
- License: mit
- Created: 2024-05-13T04:14:57.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-05-18T12:33:15.000Z (8 months ago)
- Last Synced: 2024-05-18T13:36:31.859Z (8 months ago)
- Topics: example, fullstack-development, learning, react, springsecurity, webservice
- Language: Java
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
```2. Navigate to the project directory:
```
cd
```3. Start the React application:
```
cd frontend
npm install
npm start
```4. Start the Spring Boot application:
```
cd ..
mvn spring-boot:run
```5. 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:**
```http
POST /api/v1/users HTTP/1.1
Content-Type: application/json{
"username": "user",
"email": "[email protected]",
"password": "password123"
}
```
- **Successful Response:**
```json
{
"status": "success",
"data": {
"id": 1,
"username": "user",
"email": "[email protected]"
}
}
```
- **Error Response:**
```json
{
"status": "error",
"message": "Username already taken."
}
```## License
This project is licensed under the MIT License. For more information, see the [LICENSE](LICENSE).