Skip to content

Poll companion app that provides users with a dashboard of survey data visualizations.

License

Notifications You must be signed in to change notification settings

afarentino/poll-owner-basic

Repository files navigation

poll-owner

Poll owner is a companion application to poll that presents dashboards and features applicable to the various surveys it has run over time.

Technologies Used

  1. React
  2. Vite
  3. Gradle
  4. Java
  5. Hilla (Vaadin Fusion)
  6. Spring Boot
  7. MongoDB
  8. Apex Charts
  9. GCP app engine (for production deployment)

This project's structure is based off the skeleton-starter-hilla-react-gradle zip file that can be used as a starting point to create your own Hilla application with React, Spring Boot, and Gradle. It contains all the necessary configuration and some placeholder files to get you started.

Running the application

The project is a standard Gradle Spring Boot project. To run it from the command line, type gradlew bootRun (Windows), or ./gradlew bootRun (Mac & Linux), then open http://localhost:8080 in your browser.

You can also import the project to your IDE of choice as you would with any Gradle project. Then you can run the main method of OwnerApplication.java.

Deploying to Production

To create a production build, call gradlew -Philla.productionMode=true build (Windows), or ./gradlew -Philla.productionMode=true build (Mac & Linux). This will build a JAR file with all the dependencies and front-end resources, ready to be deployed. The file can be found in the build/libs/ folder after the build completes.

Once the JAR file is built, you can run it using:

java -jar build/libs/poll-owner.jar

Project structure

gradlew.bat

DirectoryDescription
frontend/Client-side source directory
    index.htmlHTML template
    index.tsFrontend entrypoint, bootstraps a React application
    routes.tsxReact Router routes definition
    MainLayout.tsxMain layout component, contains the navigation menu, uses App Layout
    views/UI view components
    themes/Custom CSS styles
src/main/java/<groupId>/Server-side source directory, contains the server-side Java views
    Application.javaServer entry-point

Useful Hilla Development links

License

Copyright (c) 2023 Tony Castrogiovanni

About

Poll companion app that provides users with a dashboard of survey data visualizations.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published