An app for conducting polls built using Java (Spring-Boot)
, Maven
, JSP
, Hibernate
and MySQL
.
- User login/register
- Create/View channels for dedicated topics
- Create/View posts in subscribed channels
- Search users by name or username
- Search channels by name
- View all posts by a user
- View all posts in a channel
The two ways to deploy and run/test the application are listed below:
This build uses docker-compose
to run the latest images of pollify
and mysql
. The images are pulled from Docker Hub
, if not present.
- Navigate to docker folder from root directory.
- Edit the environment variables in
.env
file, if required. - Run
docker-compose up
. Addsudo
if required. - Open the browser and navigate to the port specified in
.env
file asPORT_SERVER
.
This build runs the Spring-Boot
project as a Java
application and connects it externally to a MySQL
instance.
- Navigate to app folder from root directory.
- Edit the
pom.xml
file to change the fieldpackaging
(Line 17) fromwar
tojar
. - Navigate to src/main/resources/ and edit the file named
application.properties
. - Replace the values of
spring.datasource.username
andspring.datasource.password
with your username and password. - Configure your
MySQL
instance to grant permissions to your user, if required. - Navigate to app folder from root directory and run
mvn clean package
. - A new directory named target will be created.
- Run
java -jar pollify-0.0.1-SNAPSHOT.jar
from a terminal by navigating inside target folder. - Open the browser and navigate to
localhost:8080
.
Login Screen | Dashboard |
Create Channel | View Channels |
Create Post | View Posts |
View Users | Submit Response |