This is a small demo of a blog using Spring Boot.
To run this application you'll need a MySQL database user. You can create a user with the following command.
CREATE USER blog_user@localhost
IDENTIFIED BY 'Blog_password1!';
GRANT ALL ON blog_db.* TO blog_user@localhost;
You'll also need to create an application.properties
file.
Execute the following command to create one:
$ cp src/main/resources/example.properties src/main/resources/application.properties
Add your database credentials to application.properties
.
The example.properties
file already has the settings for Mailtrap.
You'll only need to add your username and password.
NOTE. This application uses Redis for caching. It also uses RabbitMQ to queue the email messages sent to new users.
Install the applications dependencies using Maven.
$ mvn package -Dmaven.test.skip=true
Enjoy!
java -jar target/blog-0.0.1-SNAPSHOT.jar