MrChebik / Blog

CRUD application

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

#Blog Create your posts about your life or some else.

##Run

  1. Run the createDB.sh or do some steps:
    1. Create a database 'Blog' with encoding to UTF-8 (i.e. CREATE DATABASE Blog DEFAULT CHARACTER SET 'utf8' DEFAULT COLLATE 'utf8_unicode_ci')
    2. Run a project to create a tables.
    3. Create a field in role table (i.e. ROLE_USER, ROLE_ADMIN).
    4. Create a field in users table (i.e. example@mail, $2a$11$r09HI3B.IlfLC1pFuAsZ7exhDF4er162Ii1G78oj/hxiQ4fvn5aSK, admin).
    5. Create a fields in user_role table, wireless userId of admin with roleId (i.e. 1, 1 and 1, 2).
  2. Change fromEmail and password fields to your real account email (I use Yandex mail for these, i.e. smtp.yandex.ru) in SMTPServer class.
  3. Execute: mvn install tomcat7:run-war
  4. Follow to the link: http://localhost:8080/

About

CRUD application


Languages

Language:Java 88.8%Language:JavaScript 6.0%Language:Shell 4.6%Language:CSS 0.6%