Skip to content
Anton edited this page Jul 22, 2019 · 4 revisions

Welcome to the Newspaper wiki!

Overview

Newspaper is a home project which aims at reading and postind news.

Users can not post news by default, that function is available after admin enable them.

Admin can enable and delete user, aslo to grant moderator or admin privilege

News aren't approved by default and can not be shown at the /feed page, until a moderator approves them

Moderator can approve and delete posts

Getting started

First of all you need to clone this project and open via your favorite ide.

When first step is done you need to get Mysql installed: visit getting started

Lauch mysql after instalation (in case of windows you could youse MySql Workbench instead of CLI, see: product page)

In case of using CLI start mysql mysql -u USERNAME -p -h HOST

Now you're in mysql CLI

Ok, lets create database scheme named newspaper with: create database newspaper;

And select it: use newspaper;

NOTE: change spring.datasource.username= with your username and spring.datasource.password= with your password in your application.properties file

After mysql launched and schema created we now can launch and test the application

You can now see tables generated by application with show tables;

Also you can see generated User with username ADMIN and default password ADMIN and generated with default text post

NOTE: you should now change application.properties line spring.jpa.hibernate.ddl-auto=create to spring.jpa.hibernate.ddl-auto=update

That's all now go to http://localhost:8080 and check it out

Clone this wiki locally