GithubHelp home page GithubHelp logo

example's Introduction

Example Project

Getting Started

This is a simple Micronaut API project which contains:

  • JPA model and repository
  • A single controller
  • A single table
  • A single integration test

You can run the application by running the io.activated.example.Application class from your favorite IDE. Once running, you can access the list of books by running the following curl command:

curl http://localhost:8080/books

You should see the following output:

[{"id":1,"isbn":"978-1-60340-079-4","title":"Aesop's Fables","createdAt":1652925860871,"updatedAt":1652925860871},{"id":2,"isbn":"978-1-60340-085-5","title":"A Little Princess","createdAt":1652925860871,"updatedAt":1652925860871}]

Techologies Used

You can scan the build.gradle file to locate the technologies used. They include:

  • Micronaut
  • JPA
  • Spring Reactor
  • AssertJ

Your Assignment

Please take this project and make it yours by expanding on it. Please be creative and feel free to demonstrate knowledge of one or more of the following topics.

Here are some ideas

  • Use Dependency Injection to create a service class around the repository.
  • Create a User and Checkout table (or use your own names!) to create a library application. Create controllers to turn it into an API.
  • Add an API integration with Twillio or similar.
  • Install swagger into the project.
  • Create a quick JavaScript front end in React or similar

As you work:

  • Consider the Spring Reactor API and use it where possible.
  • Testing is very important. Create unit and integration tests with JUnit. Mockito use is a plus.

Feel free to be creative. The objective here is to establish you have a working knowledge of Java API projects.

example's People

Contributors

btomasini avatar

Watchers

 avatar James Cloos avatar Daniel Williams avatar  avatar

Forkers

btomasini

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.