Setup page | List projects |
---|---|
![]() |
![]() |
Backend is standard Gradle Spring Boot application. Used Java version is 11.
gradle bootRun
Frontend is made in VueJs. It is placed in frontend
directory.
cd frontend
npm install
npm run dev
Request body
{
"userName": "[email protected]",
"password": "p@ssw0rd"
}
Response body
{
"id": 46,
"userName": "[email protected]"
}
No response body
Request header
X-userId: 46
Response body
{
"content": [
{
"name": "Another item",
"status": "NEW",
"sourceLang": "zu",
"targetLangs": [
"gux",
"kl",
"kl_gl",
...
]
},
...
],
"totalElements": 3,
"totalPages": 1,
"pageNumber": 0,
"numberOfElements": 3
}
- backend without tests: 2.5 hours
- backend tests: 2 hours
- frontend without tests: 3 hours (first time with VueJs)
- Create Spring Boot application.
- The application will have 2 pages.
- Memsource account can be configured here.
- The configuration should be represented as a Spring entity class.
- Two text fields for username and password.
- Configuration can be edited and must be saved on a persistent storage (H2 database, for example).
- No need to care about the security of a password.
- List projects retrieved from https://cloud.memsource.com/web/docs/api#operation/listProjects
- You will need https://cloud.memsource.com/web/docs/api#operation/login to login first
- Name, status, source language and target languages should be displayed
- You should load and render the projects in JavaScript
- You will need to implement an endpoint in your application that will provide the data for an AJAX call
- Create production quality code.
- Understand AJAX.