Giter Site home page Giter Site logo

emirhanusta / english-training-app Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 390 KB

spring boot, spring security, postgresql, elasticsearch, react, bootstrap

Java 64.44% Kotlin 1.97% HTML 1.06% CSS 0.57% JavaScript 31.96%
postgresql reactjs spring-boot bootstrap elasticsearch spring-security

english-training-app's Introduction

English Training App

This project is a Spring Boot application that demonstrates user authentication, authorization, and JWT token generation for an English training platform.

Introduction

The English Training application is designed to facilitate English learning for users. It provides features such as user registration, login, diary management, word tracking, and word list creation.

Technologies Used

  • Java
  • Spring Boot
  • Spring Security
  • Spring Data JPA
  • PostgreSQL
  • Elasticsearch
  • React
  • Bootstrap

Project Structure

The project is organized into several packages:

  • controller: Contains controllers for handling authentication, user management, and word-related operations.
  • config: Includes configuration classes such as password encoder configuration.
  • exception: Holds custom exception classes.
  • dto: Contains Data Transfer Objects (DTOs) for data transfer between layers.
  • model: Defines entities such as User, Role, Diary, Word, and WordList.
  • repository: Contains repository interfaces for database operations.
  • security: Includes security-related classes such as JWT filter, authentication entry point, access denied handler, and Spring Security configuration.
  • service: Implements services for user management, authentication, word operations, and diary management.
  • utils: Includes utility classes related to Elasticsearch.

AuthController

The AuthController manages authentication and user registration operations.

  • POST /api/v1/auth/login: Used for user login.
  • POST /api/v1/auth/signup: Used for user registration.

DiaryController

The DiaryController handles operations related to diaries.

  • GET /api/v1/diary/getAll/{userId}: Retrieves all diaries of a user.
  • GET /api/v1/diary/get/{id}: Retrieves a specific diary.
  • POST /api/v1/diary/save: Creates a new diary entry.
  • PUT /api/v1/diary/update/{id}: Updates a diary entry.
  • DELETE /api/v1/diary/delete/{id}: Deletes a diary entry.

UserController

The UserController manages user-related operations.

  • GET /api/v1/user/me: Retrieves information of the currently authenticated user.
  • PUT /api/v1/user/update/{id}: Updates user information.
  • DELETE /api/v1/user/delete/{id}: Deletes a user.

WordController

The WordController handles operations related to words.

  • POST /api/v1/word/save: Creates a new word.
  • GET /api/v1/word/get/{id}: Retrieves a specific word.
  • GET /api/v1/word/searchWithName/{name}: Searches for words with a given name.
  • GET /api/v1/word/getAllWithFilter: Retrieves all filtered words.
  • PUT /api/v1/word/update/{id}: Updates a word.
  • DELETE /api/v1/word/delete/{id}: Deletes a word.

WordListController

The WordListController manages operations related to word lists.

  • POST /api/v1/word-list/save: Creates a new word list.
  • GET /api/v1/word-list/getAll/{userId}: Retrieves all word lists of a user.
  • GET /api/v1/word-list/get/{id}: Retrieves a specific word list.
  • PUT /api/v1/word-list/update/{id}: Updates a word list.
  • PUT /api/v1/word-list/addWord/{name}/{wordId}: Adds a word to a word list.
  • PUT /api/v1/word-list/removeWord/{id}/{wordId}: Removes a word from a word list.
  • DELETE /api/v1/word-list/delete/{id}: Deletes a word list.

english-training-app's People

Contributors

emirhanusta avatar

Stargazers

Beytullah Yayla avatar Yunus Emre Akıncı avatar

Watchers

 avatar

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.