Code Monkey home page Code Monkey logo

blogcontentapi's Introduction

Spring REST API for blogging content management

Using MySQL Community Server 8.0.34, Oracle JDK 17.0.2, Eclipse IDE 4.25, Maven 3.8.8, VSCode

For API documentation and(maybe demos): visit below link

Azure Web App

How to run on local machine

  1. Prepare a MySQL instance: Normal Installation, Docker Images(https://hub.docker.com/_/mysql), Remote Database...

Change src/main/resources/application.properties for database connection and hibernate behavior

  1. Modified JWT Secrect with another value if needed, a sample key has been given, key has to be long enough. Change the expiration time of jwt if need.

  2. Build and Run Project in any IDE.

  • If using command line, buid the project with below command ./mvnw clean install

  • or in Windows: .\mvnw.cmd clean install

  • If using command line, run the app with below command, auto reload included. ./mvnw spring-boot:run

  • or in Windows: .\mvnw.cmd spring-boot:run

Basic Rest API for a blogging content website with usecases:

  • CRUD Category(admin)
  • CRUD Post(admin)
  • CRUD Comments on Post
  • Authentication

References

The Builder Pattern in Spring Boot Development

Authorization disable for testing

IoC - DI - Proxy in Spring framework DTO design pattern, instead of calling request for each data part(attribute of an object...), combined in DTO and bring around --> in complex app, mapping from DTO to Model --> ResponseEntity<>(DTO, HttpStatus)

blogcontentapi's People

Contributors

trungisongithhub avatar trungn avatar

Watchers

 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.