Skip to content

ahmeed83/3d-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

216 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webstore application 3D Electroincs - Backend


To run the application locally:

  1. Run

    mvn clean package -P local -DsecretProperty=@secretProperty@
    
  2. Start docker for the database with:

    docker run --name webshop3d -p 5432:5432 -e POSTGRES_DB=webshop3d -e POSTGRES_PASSWORD=password -d postgres:alpine
    
  3. run the class Webshop3dApplication

  4. check application working http://localhost:5000/api/version


To run the application locally with docker compose:

  1. Run
    mvn clean package -P dev -DsecretProperty=@secretProperty@
    
  2. Run
    docker-compose up
    
  3. check application working http://localhost:5000/api/version

To deploy the application on AWS

  1. check if the configuration file exists in .elasticbeanstalk/config

  2. Run

    mvn clean package -P prd -DsecretProperty=@secretProperty@
    
  3. Run

    eb deploy
    
  4. check application working /api/version


To push image to docker HUB

  • docker build -t 3d-webshop .
  • docker tag "image-id" ahmed83/webshop3dapp:latest
  • docker push ahmed83/webshop3dapp

If you want to run the image from docker HUB, then:

  • change the file: docker-compose-hub.yml to docker-compose.yml
  • then: docker-compose up

Replace @secretProperty@ with jasypt password

About

Webstore Application — 3D Electronics backend, built to manage products, customers, and orders with scalable APIs and database integration.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages