Code Monkey home page Code Monkey logo

crud-angular-spring's Introduction

REST API with Spring Boot and Angular

CRUD Angular + Spring demonstrating Has-Many relationship, with tests.

💻 Tecnologies

  • Java 17
  • Spring Boot 3
  • JPA + Hibernate
  • JUnit 5 + Mockito (back-end tests)
  • Maven
  • Angular v14
  • Angular Material
  • Karma + Jasmine (front-end tests)

⌨️ Editor / IDE

  • Visual Studio Code
  • Java Extensions link
  • Angular Extensions link

Some functionalies available in the API

  • ✅ Java model class with validation
  • ✅ JPA repository
  • JPA Pagination
  • ✅ Controller, Service and Repository layers
  • Has-Many relationship (Course-Lessons)
  • Swagger
  • Java 17 Records as DTO (Data Transfer Object)
  • Hibernate / Jakarta Validation
  • Unit tests for all layers (repository, service, controller)

Some functionalies available in the Front-end

  • Angular Material components
  • List of all courses
  • Form to update/create courses with lessons (has-many - FormArray)
  • View only screen
  • TypedForms (Angular v14+)
  • Presentational x Smart Components
  • Unit and Integration tests for components, services, pipes, guards

❗️Excuting the code locally

Executing the back-end

You need to have Java and Maven installed and configured locally.

Open the crud-spring project in your favorite IDE as a Maven project and execute it as Spring Boot application.

Executing the front-end

You need to have Node.js / NPM installed locally.

  1. Install all the required depencencies:
npm install
  1. Execute the project:
npm run start

This command will run the Angular project with a proxy to the Java server, without requiring CORS.

Open your browser and access http://localhost:4200 (Angular default port).

crud-angular-spring's People

Contributors

loiane 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.