Posts

Showing posts with the label MVC

Social network exercise - part1

Image
[UPDATE] - This one is on hold for now. Due to other activities and projects I do not have much time to get involved in it. But database is done ( or at least it's functional for now ) and it's the largest one I've built so far ( 15+ tables ?! ). Frontend is also done for existing pages but I will probably redo it with Angular and SASS or LESS. And yes, some Backend functionalities are done also. Code is not ready to be shown to the world :D  *** Just a concept I've started working on. For now there are only three pages: Login/Signup, Profile and Account settings. Frontend is mostly done. It's simple but needs a few more tweaks + Js/jQuery sweetness. I need to redo a login page cause it's way too ugly. After that going to MySQL and Backend. I should have used SASS!

Web Weather Application

Image
This one is not really finished yet. I still want to make a daily or/and hourly forecast. That is why so much space was left empty. Model was created from  my weather application , that I've done before, and Controller and View were developed rather quickly which resulted in not so spectacular UI and functionalities. djordje.webweatherapp.model.Weather.java /* * Web Weather Application - Maven / Spring Web MVC */ package djordje.webweatherapp.model; import net.aksingh.owmjapis.CurrentWeather; import net.aksingh.owmjapis.OpenWeatherMap; import org.json.JSONException; /** * * @author djordje gavrilovic */ public class Weather { private int cityID; private String cityName; private String description; private String temperature; private String pressure; private String humidity; private String wind; private String iconID; public int getCityID() {return cityID;} public void setCityID(int cityI...

Simple weather application

Image
Weather app powered by OpenWeatherMap API. Done with JavaFX/fxml. Libs: java-json.jar, owm-japis-2.5.0.5.jar. model.WeatherModel.java /* * MyWeather App with OpenWeatherMap API */ package model; import javafx.beans.property.LongProperty; import javafx.beans.property.SimpleLongProperty; import javafx.beans.property.SimpleStringProperty; import javafx.beans.property.StringProperty; import net.aksingh.owmjapis.CurrentWeather; import net.aksingh.owmjapis.OpenWeatherMap; import org.json.JSONException; /** * * @author djordje gavrilovic */ public class WeatherModel { private final LongProperty cityID = new SimpleLongProperty(this,"cityID"); private final StringProperty cityName = new SimpleStringProperty(this,"cityName"); private final StringProperty description = new SimpleStringProperty(this,"description"); private final StringProperty temperature = new SimpleStringProp...

Registration of internet package sales

Image
It's a simple, MVC, JavaFX, single scene app. Actually it's a form for registering the sale of an internet package with a ListView of previous purchases. The internet package consists of few parameters : speed, flow, duration of the contract, id, name and surname of the user and user address. The functionalities are: review all sales , adding new sales and deletion of existing sales. jfxas1.Main.java 1: /* 2: * JavaFX - Registrovanje prodaje internet-paketa 3: */ 4: package jfxas1; 5: 6: import java.net.URL; 7: import javafx.application.Application; 8: import javafx.fxml.FXMLLoader; 9: import javafx.scene.Scene; 10: import javafx.scene.layout.BorderPane; 11: import javafx.stage.Stage; 12: 13: /** 14: * 15: * @author djordje gavrilovic 16: */ 17: public class Main extends Application{ 18: 19: public static void main(String[] args) { 20: launch(args); 21: } 22: 23: @Override ...

Web shop app

Spring Web MVC app for a online shop, with MySQL db. It lacks sophisticated GUI but it works. Application has 3 pages: buyers (kupci), products (proizvodi) and sales (prodaja). Plus Index page. On Proizvodi page you have a possibility to create, delete or update a certain product. You can do the same with buyers on the Kupci page. Selling a particular product to a particular buyer is possible on a Prodaja page. Each sale involves updating the status in the product table as well in the table with customers. index.jsp 1: <%@page contentType="text/html" pageEncoding="UTF-8"%> 2: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" 3: "http://www.w3.org/TR/html4/loose.dtd"> 4: 5: <html> 6: <head> 7: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 8: <title>WEB PRODAVNICA</title> 9: <style> 10: bo...