Skip to content

Different versions of a full stack application. Includes JDBC Persistence, Hibernate Persistence and REST API with Jersey and Ionic4 as frontend.

Notifications You must be signed in to change notification settings

manujose94/ITBA-BANCALET

Repository files navigation

Bancalet Virtual

Application for the sale of food products

Accounts

Admin:

  • User: administrador

  • Password: administrador

User:

  • User: usuario

  • Password: usuario

Authors

  • Lurbe Sempere, Manel
  • Martínez Baños, Manuel José
  • Catalán Gallach, Izan

Version Log

V1

  • Views with JSP.
  • Persistence with JDBC.

V2

  • Persistence with Hibernate.
  • New features and BUG fixes.

V3

  • Remake using API REST with Jersey.
  • Client REST with IONIC 4.

API REST

API REST Bancalet Virtual documented

IONIC 4

Ionic4 Project

Original source code ionic 4 with default images in the following link:compressed_file_project

Production

  • Clone the repo:

  • On the root folder of the project package the application with :

    • mvn clean
    • mvn compile
    • mvn clean package
  • You need to configure the following files in order to launch it:

    • Install postgres

    • Create user postgres: myuser mypass

    • Create if necesary DB: Bancalet

    • DB tables are in the folder: Bancalet/persistence/src/main/resources/schema.sql

    • Create the tables in a postgres database: \i Bancalet/persistence/src/main/resources/schema.sql

    • Propierties: Bancalet/webapp/src/main/resources/config/application.propierties

    • Copy the app.war file that was generated in the Bancalet/webapp/target folder on your web server

    • Deploy the app.war in tomcat, generally it will be at: http://localhost:8080/app/.

Development

  • Install postgres:

    • Create user postgres: myuser mypass

    • Create if necesary DB: Bancalet

    • Create if necesary DB: BancaletTest (for mvn test only)

  • For developing:

    • Must use jdk version 1.8

    • If you are using Eclipse you can install Run-Jetty from Eclipse Marketplace for more comfort or configure a apache tomcat server or other

  • Clone repository into your eclipse workspace:

  • You need to configure the following files in order to launch it:

    • DB tables: Bancalet/persistence/src/main/resources/schema.sql

    • Propierties: Bancalet/webapp/src/main/resources/config/application.propierties

  • Launch

    • Eclipse > Run As > Run on Jetty

    • If everything went well, generally it will be at: http://loaclhost:8080/webapp/ and use the application

Deploy pampero ITBA

  • Clone the repo:

  • On the root folder of the project package the application with :

    • mvn clean
    • mvn compile
    • mvn clean package
  • Copy the app.war file that was generated in the Bancalet/webapp/target folder by sft to:

    • sftp paw-2019a-6@10.16.1.110

    • put Bancalet/webapp/target/app.war

  • Create/Update the tables in the postgres database:

    • Run database script if necessary to backup any table data.

    • psql -h 10.16.1.110 -U paw-2019a-6

    • \i Bancalet/persistence/src/main/resources/schema.sql

    • Run a script if necessary to restore a backup of the data in the tables

About

Different versions of a full stack application. Includes JDBC Persistence, Hibernate Persistence and REST API with Jersey and Ionic4 as frontend.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages