Bananiys202024 / blog

Simple and beautiful CRUD app. This is a full cooked web-site-diary.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

blog

Screenshots

Frameworks and tools

Java&IDE: JDK8 MyEclipse2018
Backend: Spring-boot, Spring, Spring-data, Spring Security, apache POI, Hibernate
Frontend: Bootstrap, thymeleaf
Database: cassandra
Web Server: Tomcat7
Build Tool: Maven
Linux: Arch Linux
Other: Log4j, junit, lombok

Start project with maven

Start cassandra database on arch linux

    sudo cassandra -R

Generate archive

    mvn install

Start server

    java -jar target/blog-0.0.1-SNAPSHOT.jar

Go to web site

    http://localhost:8082/

port of url can be different. You need check server.port in file src/main/resources/application.properties

Tuning project...

  1. force update of snapshots updates
            mvn clean install -U
    
  2. Add libraries to build path. In Eclipse: right click by folder "library" and choose "Add to Build Path".
  3. “The selection cannot be run on any server” you need go to project facets and mark version for Dynamic Web Module, on date 21.10.2020 version must be 3.0. may be you will been unmark Cloud Foundry Standalone in Project Facets and use tomcat7
  4. If you can't start project from of weakly computer you can delete package "com.web.blog.Initializing"
  5. If you can't start project then execute command "Drop keyspace blog;" in cassandra
  6. If you can't start project then change schemaAction.RECREATE to another recreate RECREATE_.. in class CassandraConfiguration in package "com.web.blog.configuration"
  7. If you want start project without mistakes then change schemaAction to "CREATE_IF_NOT_EXISTS" in class configurationCassandra and delete package Initizator

Username, password and role for sign In

  1. Admin: 123 :admin
  2. User: 123 :user
  3. Banan: 1234 :user
  4. nonBanan: 12345 :user

How use cassandra

Start cassandra db on arch linux

systemctl start cassandra

Open cassandra in terminal

cqlsh

Show all exist databases

DESCRIBE keyspaces;

Use database "blog"

use blog

Show all tables

DESCRIBE tables;

Select all from table "jokes"

SELECT * FROm jokes;

Drop table

DROP TABLE jokes;

Drop database

drop keyspace blog;

To clear table "goals"

TRUNCATE goals;

Address already in use on arch linux

Looking for port

sudo netstat -tulpn | grep :9042

Looking for port

sudo lsof -i :9042

Kill port

sudo kill -9 11778

Where is 11778 is PID of process

Get Ip of laptop in arch linux

1 way

ip addr show wlp2s0

2 way

ip addr show

3 way

ip route list 

About

Simple and beautiful CRUD app. This is a full cooked web-site-diary.


Languages

Language:Java 61.3%Language:HTML 37.1%Language:JavaScript 0.8%Language:CSS 0.7%