itmodreamteam / myrest Goto Github PK
View Code? Open in Web Editor NEWAutomation of restaurants search, table reservation and interaction with staff
Automation of restaurants search, table reservation and interaction with staff
Integrate the system with the business process management engine, automate one business process and demonstrate its workflow.
class AccessTokenProviderImpl : AccessTokenProvider {
var accessToken: String? {
print("Retrieve access token from persistent storage")
return "MyToken"
}
}
AccessTokenProviderCompanion.init().INSTANCE = AccessTokenProviderImpl()
2. Implement UnauthenticatedErrorHandler and register it
class UnauthenticatedErrorHandlerImpl : UnauthenticatedErrorHandler {
func handle() {
print("Redirect user to Sign In")
print("Retrieve access token and persist it")
}
}
UnauthenticatedErrorHandlerCompanion.init().INSTANCE = UnauthenticatedErrorHandlerImpl()
3. Implement DefaultErrorHandler and register it
class DefaultErrorHandlerImpl : DefaultErrorHandler {
func handle(clientException: ClientException) {
print("Take one error from exception and display it")
}
}
DefaultErrorHandlerCompanion.init().INSTANCE = DefaultErrorHandlerImpl()
handleWithDefaultErrorHandler
method of which should be invoked as default error handling strategyErrorHandler<CONTEXT>
and implement its abstract methods, where CONTEXT is a type required for opening new UI view/screen. On each client method invocation implement exception handling as follows: errorHandler.handle(context, clientException)
.Implement RestaurantSearchScene
Implement signUp/signIn
Attributes of DTOs that come to the server via REST API must be validated. However, Spring Validation doesn't suit for those DTOs as they are placed in shared module, where multi-platform Kotlin is used.
Make use of report generation tools. Demonstrate report being generated, based on the template and input parameters, and exported, e.g. as PDF.
When user registers restaurant, he/she becomes its manager. RestaurantStatus = PENDING. System admin gets notified.
System admin can change restaurant status (invoking updateStatus
method) to any of these values:
enum class RestaurantStatus {
PENDING,
ACTIVE,
BLOCKED,
HIDDEN,
}
On status change, restaurant managers get notified.
Implement routing between RestaurantList, SignIn, SignUp and UserInfo scenes.
There are 2 types of messages:
Demonstrate that the system has secured working API and external systems are able to interact with it.
IMHO converter methods should not be in service level classes. It's usually different layer because of SRP.
Service does business logic as well as converting entities.
Why is it bad? Because
Originally posted by @AlexIvchenko in #19 (comment)
Caused by FCM
GOOGLE_APPLICATION_CREDENTIALS var must be provided
Sign In and Sign Up view for Android
PoC: how clients communicate with server by means of multi-platform Kotlin
When restaurant is created, creator is added to its employees list as manager. RestaurantStatus = ACTIVE. UserStatus = PENDING (must be ACTIVE, too).
RestaurantInfo page
For Kotlin/Native and Kotlin/JS
When an error occurs, we need to log it (appropriate logging level, provide as more info as possible, exception stack trace), convert to a readable message that we will show to user, and send this message in a response.
Page where a user can choose a table and reserve it
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.