GithubHelp home page GithubHelp logo

csc207-uoft / cleanarchitecturewebdemo Goto Github PK

View Code? Open in Web Editor NEW
1.0 0.0 5.0 62 KB

A fork of the CleanArchitecture Demo, modified to be a web app with a Spring Boot back end and basic front-end.

HTML 3.91% JavaScript 8.43% CSS 3.71% Java 83.96%

cleanarchitecturewebdemo's Introduction

Clean Architecture Web Demo

Added a web app on top of the existing enrolment manager. Modified the Student entity to make it work as a model in Spring Boot, then added a use case class and controllers to define actions that users of our API can do with the Student entities. No views (presenters) were created since this API will respond with JSON data, and Spring Boot has an implementation of this right out of thew box.

Then, we create a simple front-end with HTML, CSS, and JavaScript to consume the API and display a list of students.

If you want to run this, you will need to set up a PostgreSQL database on your machine. You can find many online tutorials about how to do this.

From the Original README:

A course enrolment manager with almost no features. A work in progress toward the Clean Architecture.

Clone, compile, and run this program. You will be prompted for several pieces of information, and then be enrolled in a course. Then the program exits.

The UI (the command line, so System.in and System.out) has been separated into another layer and injected into the run method. That way, other UIs can be injected, and as an example, there is a test case that uses an implementation that reads from a String array instead of from the keyboard, and saves output to another String array so that it can be checked for correctness in the test case.

cleanarchitecturewebdemo's People

Contributors

evank28 avatar

Stargazers

Rohan avatar

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.