|
1 |
| -# spring-boot-jwt-auth-api |
| 1 | +# Spring Boot JWT Auth API 🌐🧑💻 |
| 2 | + |
| 3 | + |
| 4 | + |
| 5 | + |
| 6 | + |
| 7 | + |
| 8 | + |
| 9 | + |
| 10 | + |
| 11 | + |
| 12 | + |
| 13 | + |
| 14 | + |
| 15 | + |
| 16 | + |
| 17 | + |
| 18 | +## Overview |
| 19 | + |
| 20 | +This project is a Spring Boot application with JWT authentication. It provides a robust and secure API for authentication and authorization using JSON Web Tokens (JWT). |
| 21 | + |
| 22 | +## Features |
| 23 | + |
| 24 | +- **Spring Boot** - for building the backend application. |
| 25 | +- **JWT** - for secure authentication and authorization. |
| 26 | +- **Spring Security** - to secure the application. |
| 27 | +- **Maven** - for dependency management. |
| 28 | +- **H2 Database** - in-memory database for development and testing. |
| 29 | +- **Postgres Database** - Sequel database for persistence data. |
| 30 | + |
| 31 | +## Technologies |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | + |
| 36 | + |
| 37 | + |
| 38 | + |
| 39 | + |
| 40 | + |
| 41 | + |
| 42 | + |
| 43 | + |
| 44 | + |
| 45 | + |
| 46 | + |
| 47 | + |
| 48 | +## Getting Started |
| 49 | + |
| 50 | +### Prerequisites |
| 51 | + |
| 52 | +- Java 21 or higher |
| 53 | +- Maven 3.6.3 or higher |
| 54 | + |
| 55 | +### Installation |
| 56 | + |
| 57 | +1. Clone the repository: |
| 58 | + ```sh |
| 59 | + git clone https://github.com/DFanso/spring-boot-jwt-auth-api.git |
| 60 | + ``` |
| 61 | +2. Navigate to the project directory: |
| 62 | + ```sh |
| 63 | + cd spring-boot-jwt-auth-api |
| 64 | + ``` |
| 65 | +3. Build the project using Maven: |
| 66 | + ```sh |
| 67 | + mvn clean install |
| 68 | + ``` |
| 69 | +4. Run the application: |
| 70 | + ```sh |
| 71 | + mvn spring-boot:run |
| 72 | + ``` |
| 73 | + |
| 74 | +### Usage |
| 75 | + |
| 76 | +- Access the application at `http://localhost:8080`. |
| 77 | +- Use tools like Postman or curl to test the API endpoints. |
| 78 | + |
| 79 | +## API Endpoints |
| 80 | + |
| 81 | +- `POST /api/auth/register` - Register a new user. |
| 82 | +- `POST /api/auth/login` - Authenticate a user and get a token. |
| 83 | +- `GET /api/auth/profile` - Get user's profile. |
| 84 | + |
| 85 | +## Contributing |
| 86 | + |
| 87 | +Contributions are welcome! Please fork the repository and create a pull request. |
| 88 | + |
| 89 | +## License |
| 90 | + |
| 91 | +This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details. |
| 92 | + |
| 93 | +## Contact |
| 94 | + |
| 95 | +- GitHub: [DFanso](https://github.com/DFanso) |
| 96 | + |
| 97 | +--- |
| 98 | + |
| 99 | +Happy coding! 🚀 |
0 commit comments