Skip to content

Group project for IDATA2301 Web Technologies and IDATA2306 Application development at NTNU Ålesund.

License

Notifications You must be signed in to change notification settings

pr0xity/Urban-Infusion

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


Logo

Urban Infusion

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
  1. Description
  2. Getting Started
  3. Functionality
  4. License
  5. Contact

Description

Front Page Screen Shot

Our project consists of developing a web store for a fictional herbal tea retail company called UrbanInfusion.

back to top

Frameworks and Tools

This project was created using the following:

back to top

Getting Started

Prerequisites

Development

  1. Start Postgres container in docker

    docker run -d --name PostgresDB -e POSTGRES_PASSWORD=YourPassword -p 6000:5432 postgres:14.2
  2. Clone the repo

    git clone https://github.com/pr0xity/Urban-Infusion.git
  3. Update application.properties

    • spring.profiles.active to match prod or dev
    • spring.mail.username to match email to use for mailing
  4. Update application-dev.properties

    • jwt.token.validity
    • jwt.signing.key
    • jwt.authorities.key
    • spring.datasource.url
    • spring.datasource.username
    • spring.datasource.password
  5. Package the java application

    mvn clean && mvn package
  6. run the java application

    mvn spring-boot:run

Deployment

  1. Start Postgres container in docker

    docker run -d --name PostgresDB -e POSTGRES_PASSWORD=YourPassword -p 6000:5432 postgres:14.2
  2. Clone the repo

    git clone https://github.com/pr0xity/Urban-Infusion.git
  3. Update application.properties

    • spring.profiles.active to match prod or dev
    • spring.mail.username to match email to use for mailing
  4. create application-prod.properties

    • jwt.token.validity
    • jwt.signing.key
    • jwt.authorities.key
    • jwt.header.string
    • jwt.cookie.name
    • domain.name
    • domain.port
    • spring.mail.username
    • spring.mail.password
    • spring.datasource.url
    • spring.datasource.username
    • spring.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
  5. Package the java application

    mvn clean && mvn package
  6. run the java application

    nohup java -jar target/appdevapi-0.0.1-SNAPSHOT.war &

back to top

Functionality

Customer Admin

Account Management

  • create account
  • edit/delete own account
  • reset password

User Management

  • view all users
  • edit users'
    • name
    • email
    • address

Wishlist

  • add product to wishlist
  • remove product from wishlist
  • share wishlist with others

Order Management

  • view all orders
  • mark/unmark orders as processed

Review

  • post a product review
  • edit review made by this user
  • remove review made by this user

Review Management

  • view all reviews
  • edit display name of reviews
  • delete reviews

Shopping

  • browse products
  • add product to shopping cart
  • remove product from shopping cart
  • place a new order
  • view purchase history

Product Management

  • view all products
  • create new products
  • edit existing products
  • remove products from store

back to top

License

Distributed under NTNU. For educational purposes only

back to top

Contact

Sakarias Sæterstøl - [email protected]
Janita Røyseth - [email protected]
Didrik Eilertsen - [email protected]
Nina Blindheim - [email protected]
Espen Otlo - [email protected]

back to top

Acknowledgments

Special thanks to the following libraries, tools and resources.

back to top

About

Group project for IDATA2301 Web Technologies and IDATA2306 Application development at NTNU Ålesund.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 5