forked from Waracle/cake-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
A-W-Smith/cake-manager
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Cake Manager Micro Service (fictitious) ======================================= A summer intern started on this project but never managed to get it finished. The developer assured us that some of the above is complete, but at the moment accessing the /cakes endpoint returns a 404, so getting this working should be the first priority. Requirements: * By accessing the root of the server (/) it should be possible to list the cakes currently in the system. This must be presented in an acceptable format for a human to read. * It must be possible for a human to add a new cake to the server. * By accessing an alternative endpoint (/cakes) with an appropriate client it must be possible to download a list of the cakes currently in the system as JSON data. * The /cakes endpoint must also allow new cakes to be created. Comments: * We feel like the software stack used by the original developer is quite outdated, it would be good to migrate the entire application to something more modern. * Would be good to change the application to implement proper client-server separation via REST API. Bonus points: * Tests * Authentication via OAuth2 * Continuous Integration via any cloud CI system * Containerisation Original Project Info ===================== To run a server locally execute the following command: `mvn jetty:run` and access the following URL: `http://localhost:8282/` Feel free to change how the project is run, but clear instructions must be given in README You can use any IDE you like, so long as the project can build and run with Maven or Gradle. The project loads some pre-defined data in to an in-memory database, which is acceptable for this exercise. There is no need to create persistent storage. New Project Info ===================== The project can be run as a Spring boot application by executing the following command: `mvn spring-boot:run` Can also access it as a Docker container: `docker run -p 8080:8080 -it aws2411/cakemanager` The project features OAuth security with GitHub as sign on, to make calls inside Postman then the header X-XSRF-TOKEN and cookies (taken from requests made network tab) are both required. To bypass this authentication you can run the application with following command: `mvn spring-boot:run -Dspring.profiles.active=noAuth` Submission ========== Please provide your version of this project as a git repository (e.g. Github, BitBucket, etc). Alternatively, you can submit the project as a zip or gzip. Use Google Drive or some other file sharing service to share it with us. Please also keep a log of the changes you make as a text file and provide this to us with your submission. Good luck!
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Java 80.8%
- JavaScript 8.3%
- HTML 6.0%
- CSS 3.9%
- Dockerfile 1.0%