Giter Club home page Giter Club logo

blog's Introduction

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 

blog's People

Contributors

bananiys202024 avatar dependabot[bot] avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

yoro11

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.