Git Product home page Git Product logo

student-management-system's People

Contributors

yoanpetrov02 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dgrushetskiy

student-management-system's Issues

Remove numberOfStudents field from Courses.

Remove the numberOfStudents field from this entity and make the getter for it count the number of users with a 'STUDENT' role that are enrolled in it, using streams API.

Remove the user_accounts table.

The user_accounts table should be removed and the data from it should move to the users table. Instead of making new tables for those things, we can use DTOs.

Add a detailed README.md

The README file has to contain details about:

  • An overview of the application, what is its purpose and what it does
  • How to install the application and use it
  • How it works and what technologies are used
  • Other meaningful parts can be added on the go.

Add application.yml and application.properties templates.

These templates have to be added for developers to be able to set up their own local development environments.
The reason for this is that the application.properties file can contain sensitive data, such as database username and password, which are unique to the user, and shouldn't be shared on a public repository.

Change endpoint parameters.

In all controllers, there are handlers that take an id and a response body object. Example:

@PostMapping("/{courseId}/users")
public ResponseEntity<User> addUserToCourse(
        @PathVariable Long courseId,
        @RequestBody User requestUser
    )

Here, the requestUser parameter can easily be a path variable instead of having to make the client pass the whole details of the user when they really just need the id.
All controllers have 1-2 handlers that follow the same pattern. The task is to change this to only use path variables in the method arguments.

Fix the integration tests.

The integration tests are not working. Try with:

  • Creating a different profile with detailed configurations for testing and for development to see whether it fixes the problem.
  • If this doesn't work, find a way to completely turn off spring security for the tests.

Add JWT authentication to the app.

After removing the user_accounts table, JWT authentication has to be implemented.
We need to add:

  • A Spring Security JWT filter (OncePerRequestFilter);
  • A Spring Security configuration (WebSecurityConfigurerAdapter);
  • A service that can create/validate JWT tokens;
  • Proper DTOs to transfer the data easily.

Change controllers to not throw exceptions.

The controllers should not be throwing exceptions. This should be changed so that only the services throw these exceptions. The exceptions can then be handled using AOP (leaving this for later).

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.