Code Monkey home page Code Monkey logo

tomtickets's Introduction

TOMTickets

- Trento Online Market for Tickets -

Your trusted portal for purchasing tickets for events in Trentino!

Made By

Giovanni Santini

Valerio Asaro

Delivery Text

The delivery text can be found here Text


The following text contains most of the commands and operations I've done to build this project.

Downloading Maven

Maven is a program that helps with configuring and managing projects. I downloaded the latest release from the official website and unpacked it.

Check that everything works

./apache-maven-3.9.6/bin/mvn -v

Creating a project from an archetype

You can choose an archetype to get started, It's basically a template I choose maven-archetype-j2ee-simple as It's the closest to a servlet program.

Install the servlet by running:

mvn archetype:generate -DarchetypeGroupId=org.apache.maven.archetypes -DarchetypeArtifactId=maven-archetype-j2ee-simple -DarchetypeVersion=1.4

I inserted those settings:

Define value for property 'groupId': com.unitn.app
Define value for property 'artifactId': my-app
Define value for property 'version' 1.0-SNAPSHOT: : 1.0
Define value for property 'package' com.unitn.app: : 1.0

I deleted everything outside servlets/servlet because it is just garbage

I changed the pom.xml file with the following:

<?xml version="1.0" encoding="UTF-8"?>

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>

  <groupId>com.unitn.app</groupId>
  <artifactId>servlet</artifactId>
  <version>1.0</version>
  <packaging>war</packaging>

  <name>servlet</name>

</project>

Building

You can build the project with this command:

./apache-maven-3.9.6/bin/mvn package

Developement

Each servlet must be congifured in web.xml

Add a dependency to mavel

You can find packages here

<dependencies>
    ...
    <dependency>
        <groupId>com.stackoverflow...</groupId>
        <artifactId>artifactId...</artifactId>
        <version>1.0</version>
    </dependency>
    ...
</dependencies>

tomtickets's People

Contributors

qw3rty26 avatar san7o avatar

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.