- PostgreSQL.
- TomEE (Apache) WebProfile.
- Hibernate ORM.
- (Optional) IntelliJ IDEA.
- (Optional) pgAdmin 3 or 4.
- In pgAdmin change password of user
postgres
totestpass
- Open pgAdmin 4
- Create database
feedbackdb
- Open Feedback System project tree in IntelliJ IDEA
- Find
feedback_schema.sql
undersrc/main/db
- Right-click
Run 'feedback_schema.sql'...
- Find
sample_data.sql
undersrc/main/db
- Right-click
Run 'sample_data.sql'...
Short version:
- Download WebProfile, ZIP from: http://tomee.apache.org/downloads.html
- Unzip
- In IntelliJ IDEA: register "TomEE Server" -> local:
- Press "Fix", choose "exploded war" as artifact
- Run the server, project should start successfully.
Long version: TomEE and IntelliJ IDEA.
Short version:
- Download final version of Hibernate ORM, ZIP from: http://hibernate.org/orm/downloads/
- Copy contents from
hibernate-release-5.2.9.Final.zip/lib/required
to the<tomee>/lib
directory. - Add the following lines to the
<tomee>/conf/system.properties
file:javax.persistence.provider = org.hibernate.jpa.HibernatePersistenceProvider tomee.jpa.factory.lazy=true
Long version: Hibernate User Guide.
Install PostgresSQL and PgAdmin as described here and run pgadmin4
, browser should open.
https://askubuntu.com/questions/1034035/pgadmin-4-not-working-in-ubuntu-18-04
service postgresql start
service postgresql status
sudo su postgres
psql
\l
alter user postgres with password 'testpass';
(took from https://youtu.be/-LwI4HMR_Eg?t=5m26s)
go to PgAdmin and add server: Host: localhost password: testpass
Also, install Lombok plugin to intellij
Intellij -> Database -> + -> Data Source Also, configurate schemas
In case emails of getting errors while sending emails: https://stackoverflow.com/a/32373724/4726792