Skip to content

vladtf/vta-ip-project

Repository files navigation

Program Engineering Project - VTA

Table of Contents

Documentation

Presentations

Deploy

The application is deployed on AWS.

To deploy the entire infrastructure follow the steps below:

  • Run Terraform Apply in GitHub Actions
  • Run Build and Push to ECR Backend in GitHub Actions
  • Run Build and Push to ECR Frontend in GitHub Actions

To remove the entire infrastructure follow the steps below:

  • Run Terraform Destroy in GitHub Actions

Local Environment

Run frontend

Node.js and npm are required.

❯ npm --version
9.5.0
❯ node --version
v19.7.0

Update the packages

> cd frontend
> npm install

Run the frontend

> npm start

Run backend

Start the backend.

Note: You need to have Java 11 installed on your machine. You can check the version by running java -version. Note: The database is not running locally. You need to run the docker-compose.

> cd backend
> ./mvnw spring-boot:run

Run Docker Compose

You need docker and docker-compose installed on your machine.

# check if docker is installed
❯ docker --version
Docker version 20.10.20, build 9fdeb9c

# check if docker-compose is installed
❯ docker-compose --version
Docker Compose version v2.12.0

# check if docker is running
❯ docker ps
CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES

# run docker-compose
❯ docker-compose up
[+] Running 3/3
 ⠿ Network vta-ip-project_default        Created                                                                                                                                                             0.2s
 ⠿ Volume "vta-ip-project_mariadb-data"  Created                                                                                                                                                             0.0s
 ⠿ Container mariadb_container           Created                                                                                                                                                             0.1s
Attaching to mariadb_container
...
mariadb_container  | 2023-04-20  7:15:36 0 [Note] mariadbd: ready for connections.
mariadb_container  | Version: '10.11.2-MariaDB-1:10.11.2+maria~ubu2204'  socket: '/run/mysqld/mysqld.sock'  port: 3306  mariadb.org binary distribution

Connect to the database

You need to have mysql installed on your machine.

> mysql -h 127.0.0.1 -P 3306 -u myuser -p'mypassword'  mydatabase

mysql> SHOW tables in  mydatabase;
+----------------------+
| Tables_in_mydatabase |
+----------------------+
| users                |
+----------------------+
1 row in set (0.01 sec)

Demo

Mail Server:

Activation Email:

Accounts Page:

Admin Page:

Ecs Cluster:

Home Page:

Transactions Page:

Login Page:

Register Page:

About

Ingineria Programelor - Proiect

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published