Group project for IDATA2301 Web Technologies and IDATA2306 Application development spring 2022 at NTNU Ålesund.
Explore the docs »
View Demo
·
Report Bug
·
Request Feature
Table of Contents
Our project consists of developing a web store for a fictional herbal tea retail company called UrbanInfusion.
This project was created using the following:
-
Start Postgres container in docker
docker run -d --name PostgresDB -e POSTGRES_PASSWORD=YourPassword -p 6000:5432 postgres:14.2
-
Clone the repo
git clone https://github.com/pr0xity/Urban-Infusion.git
-
Update application.properties
spring.profiles.activeto match prod or devspring.mail.usernameto match email to use for mailing
-
Update application-dev.properties
jwt.token.validityjwt.signing.keyjwt.authorities.keyspring.datasource.urlspring.datasource.usernamespring.datasource.password
-
Package the java application
mvn clean && mvn package -
run the java application
mvn spring-boot:run
-
Start Postgres container in docker
docker run -d --name PostgresDB -e POSTGRES_PASSWORD=YourPassword -p 6000:5432 postgres:14.2
-
Clone the repo
git clone https://github.com/pr0xity/Urban-Infusion.git
-
Update application.properties
spring.profiles.activeto match prod or devspring.mail.usernameto match email to use for mailing
-
create application-prod.properties
jwt.token.validityjwt.signing.keyjwt.authorities.keyjwt.header.stringjwt.cookie.namedomain.namedomain.portspring.mail.usernamespring.mail.passwordspring.datasource.urlspring.datasource.usernamespring.datasource.password
To make the application run on https use this guide https://web-tek.ninja/cookbook/https-spring-boot/
Remember to put the lines in application-prod.properties
-
Package the java application
mvn clean && mvn package -
run the java application
nohup java -jar target/appdevapi-0.0.1-SNAPSHOT.war &
| Customer | Admin |
|---|---|
|
|
|
|
|
|
|
|
Distributed under NTNU. For educational purposes only
Sakarias Sæterstøl - [email protected]
Janita Røyseth - [email protected]
Didrik Eilertsen - [email protected]
Nina Blindheim - [email protected]
Espen Otlo - [email protected]
Special thanks to the following libraries, tools and resources.
