Code Monkey home page Code Monkey logo

weplan's People

Contributors

gotgot1995 avatar malahx avatar

Watchers

 avatar  avatar  avatar

weplan's Issues

Add exception AOP

Example:

@ControllerAdvice
public class ExceptionHandler { }

@ResponseBody
@ExceptionHandler(value = Exception.class)
public ErrorResponse domainExceptionHandler(HttpServletRequest request, HttpServletResponse response, DomainException e) { }

ErrorResponse must have a custom error code in order to perform i18n translation in Angular.

Enhance event retriever

At this time, event is not parsed by user specific entry, all users will received all events.

Add Angular front-end to project

  • add new module to Maven project
  • Generate Angular project
  • configure Maven to run ng build before building/starting Springboot application
  • configure Spring to serve static content (the "dist" directory)

Spring does not always respond with CORS headers

HTTP request

OPTIONS /login HTTP/1.1
Host: localhost
Access-Control-Request-Headers: content-type
Access-Control-Request-Method: POST
Origin: http://localhost:4200
Host: localhost:4200
cache-control: no-cache
Postman-Token: 820dc41c-9bd5-4647-93b3-3016c906b0b5

HTTP response

Status: 403 Forbidden

The HTTP response should return 200 OK and contain the header:

Access-Control-Allow-Origin: *

Add some data

Activities, Cities, Departments, Regions needs to be populated.

Implement missing tests

Add missing unit tests to Region API

  • finish writing RegionControllerTest
  • write unit test for RegionRepository
  • write unit test for RegionService

Add missing unit tests to Activity API

  • write unit test for ActivityRepository

Add missing unit tests to Department API

  • write unit test for DepartmentService

Add all IT tests

Add Other tests

  • Test main
  • Enhance log handler test

Develop CRUD view for Users

Front-end

  • Create LoginComponent
  • Create RegisterComponent
  • Create ProfileComponent
  • Create User Service (use the REST client service)

Add logging AOP

A logging AOP will be better for readability and reuse of logging message.

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.