-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'feature-39-setup-build-and-publish-image' of github.com…
…:kouamschekina/e2e-banking-app into feature-39-setup-build-and-publish-image
- Loading branch information
Showing
4 changed files
with
495 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Build and deploy frontend | ||
|
||
on: | ||
pull_request: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
# Build Job | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Code | ||
uses: actions/checkout@v3 | ||
- name: Install Node | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 20 | ||
- name: Install Dependencies | ||
run: cd power-pay-frontend && npm ci | ||
|
||
- name: Build Project | ||
run: cd power-pay-frontend && npm run build-for-gh | ||
|
||
- name: Upload artifact to enable deployment | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: production-files | ||
path: power-pay-frontend/dist | ||
|
||
# Deploy Job | ||
deploy: | ||
permissions: | ||
pages: write | ||
contents: write | ||
# Add a dependency to the build job | ||
needs: build | ||
# Specify runner + deployment step | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: production-files | ||
path: dist | ||
- name: Deploy to GitHub Pages | ||
uses: peaceiris/actions-gh-pages@v3 | ||
if: github.ref == 'refs/heads/main' | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
publish_dir: dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,107 @@ | ||
# e2e-banking-app | ||
# e2e-banking-app | ||
Welcome to the e2e-banking-app project! This repository contains the code for the end-to-end banking application. | ||
|
||
## Prerequisites | ||
|
||
Before getting started, make sure you have the following tools installed: | ||
|
||
- [nvm (Node Version Manager)](https://github.com/nvm-sh/nvm): To manage Node.js versions. | ||
- [Node.js](https://nodejs.org/): Javascript runtime environment. | ||
- [npm](https://www.npmjs.com/): Package manager for Node.js. | ||
- [sdkman](https://sdkman.io/): Software Development Kit Manager. | ||
- [Java](https://www.java.com/): Programming Language and runtime environment. | ||
- [Maven](https://maven.apache.org/): Build automation and dependency management tool. | ||
- [cargo](https://doc.rust-lang.org/cargo/): Package manager for Rust. | ||
|
||
## Installation | ||
|
||
Follow the steps below to set up the local environment: | ||
|
||
1. Install nvm: | ||
- Visit the nvm Github repository: (https://github.com/nvm-sh/nvm) | ||
- Follow the installation instructions for your operating system. | ||
|
||
2. Install Node.js and npm using nvm: | ||
```bash | ||
nvm install node | ||
``` | ||
|
||
3. Install sdkman: | ||
- Visit the sdkman website: https://sdkman.io/ | ||
- Follow the installation instructions for your operating system. | ||
|
||
4. Install Java and Maven using sdkman: | ||
```bash | ||
sdk install java | ||
sdk install maven | ||
``` | ||
|
||
5. Install cargo: | ||
- Visit the cargo website: https://www.rust-lang.org/tools/install | ||
- Follow the installation instructions. | ||
|
||
# Getting Started | ||
|
||
To run the e2e-banking-app project locally, follow these steps: | ||
|
||
1. Clone the repository: | ||
```bash | ||
git clone https://github.com/ADORSYS-GIS/e2e-banking-app.git | ||
``` | ||
|
||
2. Change to the project directory: | ||
```bash | ||
cd e2e-banking-app | ||
``` | ||
|
||
3. Install project dependencies and Start application: | ||
|
||
a. For power-pay-front-end: | ||
- Change to the project directory: | ||
```bash | ||
cd power-pay-frontend | ||
``` | ||
- Install dependencies: | ||
```bash | ||
npm install | ||
``` | ||
- Build the project: | ||
```bash | ||
npm run build | ||
``` | ||
- Start application: | ||
```bash | ||
npm start | ||
``` | ||
|
||
b. For power-pay-backend: | ||
- Change to the project directory: | ||
```bash | ||
cd power-pay-backend | ||
``` | ||
- Install dependencies: | ||
```bash | ||
mvn install | ||
``` | ||
- Build the project: | ||
```bash | ||
mvn clean package | ||
``` | ||
- Start application: | ||
```bash | ||
java -jar target/power-pay-backend-0.0.1-SNAPSHOT.jar | ||
``` | ||
|
||
c. For power-pay-translator: | ||
- Change to the project directory: | ||
```bash | ||
cd power-pay-translator | ||
``` | ||
- Build the project: | ||
```bash | ||
cargo build | ||
``` | ||
- Start application: | ||
```bash | ||
cargo run | ||
``` |
Oops, something went wrong.