Skip to content

Commit

Permalink
Merge pull request #88 from a19hu/main
Browse files Browse the repository at this point in the history
modified
  • Loading branch information
a19hu authored Oct 10, 2024
2 parents 69d0f36 + 653712f commit 7075fc4
Show file tree
Hide file tree
Showing 87 changed files with 23,305 additions and 318 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
name: CI/CD Pipeline for React.js inside 'frontend' folder

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '16'

- name: Navigate to frontend and install dependencies
run: |
cd frontend
npm install
# - name: Run tests
# run: |
# cd frontend
# npm test

# - name: Build React app
# run: |
# cd frontend
# npm run build
- name: Print environment variables
run: |
echo "NO: ${{ secrets.NO }}"
echo "Server IP: ${{ secrets.SERVER_IP }}"
echo "Server Username: ${{ secrets.SERVER_USERNAME }}"
- name: Deploy to server via SSH
run: |
ssh
# uses: appleboy/ssh-action@master
# with:
# host: ${{ secrets.SERVER_IP }}
# username: ${{ secrets.SERVER_USERNAME }}
# password: ${{ secrets.SERVER_PASSWORD }}
# script: |
# cd /home/cse-tech/ashu
# cd frontend
# git pull origin main
# npm install
# npm run build
# pm2 restart react-app
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
node_modules
envr
no
no.pub
1 change: 1 addition & 0 deletions demo.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
https://medium.com/@jonas.granlund/running-django-with-postgresql-in-docker-a-step-by-step-guide-f6ab3bf05f44
Binary file added frontend/build/favicon.ico
Binary file not shown.
Binary file added frontend/build/logo192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added frontend/build/logo512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
25 changes: 25 additions & 0 deletions frontend/build/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"short_name": "React App",
"name": "Create React App Sample",
"icons": [
{
"src": "favicon.ico",
"sizes": "64x64 32x32 24x24 16x16",
"type": "image/x-icon"
},
{
"src": "logo192.png",
"type": "image/png",
"sizes": "192x192"
},
{
"src": "logo512.png",
"type": "image/png",
"sizes": "512x512"
}
],
"start_url": ".",
"display": "standalone",
"theme_color": "#000000",
"background_color": "#ffffff"
}
3 changes: 3 additions & 0 deletions frontend/build/robots.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# https://www.robotstxt.org/robotstxt.html
User-agent: *
Disallow:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions frontend/familytree/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
node_modules

build

Dockerfile


Loading

0 comments on commit 7075fc4

Please sign in to comment.