Code Monkey home page Code Monkey logo

docker_springboot-angular's Introduction

Spring Boot + Angular 15 CRUD example

Full-stack Angular 15 + Spring Boot Tutorial CRUD Application in that:

  • Each Tutorial has id, title, description, published status.
  • We can create, retrieve, update, delete Tutorials.
  • We can also find Tutorials by title.

spring-boot-angular-15-example-crud.png

Spring Boot + Angular 15 CRUD example

Run both Back-end & Front-end in one place:

Integrate Angular with Spring Boot Rest API

More Practice:

Angular + Spring Boot: File upload example

Angular + Spring Boot: JWT Authentication and Authorization example

Commands

Esential

Build

docker compose build

Run all services

docker compose up

OR

Build and run all services in the background

docker compose up -d --build

Stop all services

docker compose down

Stop all services and remove volumes, networks, and images created by up

docker compose down -v --remove-orphans --rmi all

Utils

Show logs

docker compose logs -f

Show logs for a specific service

docker compose logs -f spring-boot

Environment

All services are using the same global environment file .env

Variables used in following services:

  • spring-boot (Spring Boot)
    • FRONT_URL (Cors configuration)
    • DATBASE_NAME, DATABASE_USERNAME, DATABASE_PASSWORD (MariaDB connection) used in docker-compose.yml to generate a custom connection string using service name mariadb as host
  • angular (Angular)
    • BACK_URL (Api URL) If you want to add more environment variables, you need to update the ./angular/propagate-env.sh script to propagate them to the Angular environment file ./angular/src/environments/environment.ts
  • mariadb (MariaDB)
    • DATABASE_NAME, DATABASE_ROOT_PASSWORD, DATABASE_USERNAME, DATABASE_PASSWORD (MariaDB configuration)

docker_springboot-angular's People

Contributors

alexandregrodent avatar tienbku 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.