Git Product home page Git Product logo

umc-nutrition-app's Introduction

BS Information Systems' Final Project at UMC

Overview

Monolithic application meant to provide nutrition information helping users in balancing their diets with the follow up of real nutritionists, aiming better life quality.

Stack

  • JAVA + Spring

  • JSF 1.2 + RichFaces

  • PostgreSQL DB

Requisites

  • JDK8 or higher

  • Maven

  • Docker

How to test locally

Build the executable

In your favorite terminal, at the project root folder execute the command below to build and generate the war package:

mvn clean package

Start the database

Still at the project root folder, run the following to download the database image and start it via Docker:

docker-compose -f docker/docker-compose-postgres up

Database initial setup

The first time you start Postgresql DB, only the schema is created automatically, so that it’s required to create tables and indexes, as well as populate them with initial data for the application to work as desired in the next steps.

DB Connection

Connect to the database with the following credentials on a SQL client of choice, for instance DBeaver or Squirrel, or even via command line.

  • Host: localhost

  • Port: 5432

  • User: postgres

  • Password: aula

DDL

Load the script located at help/scripts/ddl.sql to generate tables and another necessary resources.

DML

Load initial data via contents from the script help/scripts/initial_data.sql.

Start the application server

Now it’s time to start Payara to deploy the war generated at the build step.

docker-compose -f docker/docker-compose-payara up

Validate the application

In your favorite browser verify that you can access the application at http://localhost:8080/nutribem-v1.

Expected result:

welcome

umc-nutrition-app's People

Watchers

 avatar

umc-nutrition-app's Issues

Fix character encoding

The source code as well as the web pages present issues with encoding that must be identified and properly fixed.

Example:
Screenshot from 2021-06-06 01-36-30

Refactor to run in container

This monolith app has been built locked to run on a web server started from Eclipse, hence it should be refactored to run dockerized, without changing its original implementation.

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.