Fullstack website designed to help users learn the most popular words in English. This project contains RESTful backend repository written in Spring / Java.
https://talk-tactics-backend-springboot.onrender.com/swagger-ui/index.html#/
- Java: A general-purpose programming language used for backend development.
- Spring Boot: A framework that simplifies the development of Java applications, including web applications.
- Spring Security: A powerful and highly customizable security framework for Java applications.
- PostgreSQL: A relational database management system used for storing and retrieving data.
- JSON Web Tokens (JWT): A method for securely transmitting information between parties as a JSON object.
- Hibernate: An object-relational mapping framework for Java applications.
- Swagger UI: A tool for generating interactive API documentation.
- Mockito: A mocking framework for testing Java applications.
com
└── example
└── talktactics
├── auth - All logic related to authentication and authorization
├── common - Shared components
├── config - Security, WebMvc and Application configuration
├── controller - Endpoints for requests
├── dto - data transfer objects
├── entity - Entity classes
├── exception - Custom exceptions
├── repository - JPA repositories for SQL requests
├── service - Business logic
└── util - Helpers
- Install Docker on your machine.
- Ensure Maven is installed.
- Make sure you have installed Java. I used Java 17.
- Clone repository:
git clone https://github.com/PiotrPabichCode/talk-tactics-backend-springboot.git
- Configure Secrets
DB_HOST=_YOUR_DATABASE_HOSTNAME
DB_PORT=_YOUR_DATABASE_PORT
DB_USERNAME=_YOUR_DATABASE_USERNAME
DB_PASSWORD=_YOUR_DATABASE_PASSWORD
DB_DATABASE=_YOUR_DATABASE_NAME
JWT_SECRET_KEY=_RANDOM_JWT_SECRET_KEY
JWT_TOKEN_EXPIRATION=_EXPIRATION_IN_MS
JWT_REFRESH_TOKEN_EXPIRATION=_REFRESH_EXPIRATION_IN_MS
- Update the
application.yml
properties file located in the backend directory to match your specific needs. - Open a command-line interface (CLI) or terminal and navigate to the backend directory of the project.
- Install all dependencies from
pom.xml
file - Locate the
TalkTacticsApplication.java
file in the backend source code and run it. - The backend server is now up and running, ready to handle incoming requests.