GithubHelp home page GithubHelp logo

tylercao / springblog Goto Github PK

View Code? Open in Web Editor NEW

This project forked from raysmond/springblog

0.0 2.0 0.0 1.2 MB

A simple blogging system implemented with Spring MVC + Spring JPA + Hibernate + MySQL + Redis + Bootstrap + Jade. Source code for my personal website: http://raysmond.com .

Python 1.67% Shell 0.74% Java 80.60% CSS 2.65% HTML 14.34%

springblog's Introduction

SpringBlog

SpringBlog is a very simple blog system implemented with Spring MVC. It's one of my learning projects which took me two days to develop the first minimal and runnable version. I've put it on production for my personal website http://raysmond.com.

SpringBlog is powered by many powerful frameworks and third-party projects:

  • Spring MVC + Spring JPA + Hibernate - Powerful frameworks
  • HikariCP - A solid high-performance JDBC connection pool
  • Bootstrap - A very popular and responsive front-end framework
  • Pegdown - A pure-java markdown processor
  • ACE Editor - A high performance code editor
  • Pygments - Python syntax highlighter
  • Jade4j - Jade is an elegant template language
  • Webjars - A client-side web libraries packaged into JAR files. A easy way to manage JavaScript and CSS vendors in Gradle.
  • Redis - A very powerful in-memory data cache server.

Development

Before development, please install the following service software:

Edit application configuration file src/main/resources/dev_app.properties according to your settings.

And start MySQL, Redis and Pygments first before running the application.

# If you're using Ubuntu server
sudo service mysql start
sudo service redis_6379 start
sudo pip install pygments

This is a Gradle project. Make sure Gradle is installed in your machine. Try gradle -v command. Otherwise install in from http://www.gradle.org/. I recommend you import the source code into Intellij IDE to edit the code.

# Install artifacts to your local repository
./gradlew build

# Start the web application
./gradlew jettyRun

View http://localhost:8080/ on your browser.

Deployment

Use gradle to build a production war and deploy it on Jetty9 server in Linux. Before deployment, please install Java8, Jetty9 and the latest version of Redis server.

./gradlew warProduction

You'll find the production war in folder build/dist, for example SpringBlog-production-0.1.war.

Alternatively, you can run the deploy.sh script to deploy the application to remote server automatically. Please do change the settings before running the script.

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.