Giter Site home page Giter Site logo

cms-boot's Introduction

CMS Spring Boot Build Status

CMS based on Spring Boot.

The aim is to create relative small, flexible and extendable content management system based pure on Spring Boot and SQL database.

It is an alternative to complex solutions such as Liferay, which are quite hard to understand.

Architecture

It is classical MVC application, so everyone can understand it very easy and quicky.

It uses awesome Spring JPA to manipulate entities.

Quickstart

  1. Clone repository
  2. Go to project folder cd cms-boot
  3. Build project ./gradlew build
  4. Run project java -jar build/libs/cms-boot-0.2-SNAPSHOT.jar --spring.profiles.active=dev
  5. Run it on localhost:8080

Better way of usage is to create local database. Create file application-local.yml from application-local.yml.template and run it in local profile.

Login

You can login as admin or developer on: /login

Usage

As a developer you can in administration add page texts and page images.

cms-spring-boot

As a administrator you can edit this page texts and images.

Insert data to templates in controllers calling method addPageData for example HomapageController.java:

    @RequestMapping("/")
    public String index(Model model) {
        addPageData(model, "homepage");

        return "front/index";
    }

In templates you maps pageTexts and pageImages. You have an access to data. For example in about.html.

    <div class="row">
        <div class="col-lg-12 text-center">
            <h1 class="mt-5">About us</h1>
            <p th:utext="${pageTexts.get('about-text')}"></p>

            <image th:src="@{/file/} + ${pageImages.get('about-image')}"></image>

        </div>
    </div>

IDEA Config

We recommand you to use IntelliJ IDEA.

Profile

Dev profile can be actived. In that case application-dev.yml is used and datasource is h2 db. To do in idea go to

Run/Debug Configuration > Active Profiles > Insert "dev"

Lombok

Lombok is present and should be used in every entity. To run it smoothly in IDEA install Lombok plugin and turn on annotation processors in settings. ``

cms-boot's People

Contributors

buttasam avatar jakub-tucek avatar

Watchers

James Cloos 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.