Skip to content

Commit

Permalink
Move frontend to web
Browse files Browse the repository at this point in the history
  • Loading branch information
AchoArnold committed Jun 28, 2024
1 parent 257a632 commit d5b1d48
Show file tree
Hide file tree
Showing 85 changed files with 13,055 additions and 82,480 deletions.
47 changes: 47 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
version: 2
updates:
# Fetch and update latest `npm` packages
- package-ecosystem: npm
directory: "/web"
schedule:
interval: monthly
time: "00:00"
open-pull-requests-limit: 10
reviewers:
- AchoArnold
assignees:
- AchoArnold
commit-message:
prefix: fix
prefix-development: chore
include: scope
# Fetch and update latest `github-actions` pkgs
- package-ecosystem: github-actions
directory: "/"
schedule:
interval: monthly
time: "00:00"
open-pull-requests-limit: 10
reviewers:
- AchoArnold
assignees:
- AchoArnold
commit-message:
prefix: fix
prefix-development: chore
include: scope
# Fetch and update latest `go` packages
- package-ecosystem: gomod
directory: "/backend"
schedule:
interval: monthly
time: "00:00"
open-pull-requests-limit: 10
reviewers:
- AchoArnold
assignees:
- AchoArnold
commit-message:
prefix: fix
prefix-development: chore
include: scope
20 changes: 14 additions & 6 deletions .github/workflows/firebase.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,25 @@ jobs:
steps:
- name: Checkout Repo
uses: actions/checkout@master
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
run_install: false
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Install Dependencies
run: yarn install
working-directory: ./frontend
run: pnpm install
working-directory: ./web
- name: Build
run: yarn build
working-directory: ./frontend
working-directory: ./web
- name: Archive Production Artifact
uses: actions/upload-artifact@master
with:
name: build
path: ./frontend/build
path: ./web/build
deploy:
name: Deploy
needs: build
Expand All @@ -33,12 +41,12 @@ jobs:
uses: actions/download-artifact@master
with:
name: build
path: ./frontend/build
path: ./web/build
- name: Deploy to Firebase
uses: w9jds/firebase-action@master
with:
args: deploy --only hosting
env:
FIREBASE_TOKEN: ${{ secrets.FIREBASE_TOKEN }}
PROJECT_PATH: ./frontend
PROJECT_PATH: ./web
PROJECT_ID: ${{ secrets.PROJECT_ID }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.firebase
.env
firebase-debug.log
.idea
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ if you have any suggestions/questions, open a PR or issue on github. If you're n

## Directory Structure

This web app follows the subscribe to the [monolithic repo philosophy](https://danluu.com/monorepo/). So there’s one and only one repo, containing deploy scripts, frontend & backend code. The frontend code is inside the [./frontend](./frontend) directory and the backend code is inside the [./backend](./backend) directory. There's some github-actions configuration to easily deploy to firebase when a push is one to the master branch. The code for this is found inside the [./.github/workflows](./.github/workflows) directory
This web app follows the subscribe to the [monolithic repo philosophy](https://danluu.com/monorepo/). So there’s one and only one repo, containing deploy scripts, frontend & backend code. The frontend code is inside the [./frontend](./old) directory and the backend code is inside the [./backend](./backend) directory. There's some github-actions configuration to easily deploy to firebase when a push is one to the master branch. The code for this is found inside the [./.github/workflows](./.github/workflows) directory

## Architecture

Expand Down
27 changes: 24 additions & 3 deletions backend/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,28 @@ module github.com/NdoleStudio/gist-cleaner/tree/master/backend
go 1.13

require (
github.com/getsentry/sentry-go v0.3.1
github.com/pusher/pusher-http-go v4.0.0+incompatible
golang.org/x/crypto v0.17.0 // indirect
github.com/CloudyKit/jet v2.1.3-0.20180809161101-62edd43e4f88+incompatible // indirect
github.com/aymerick/raymond v2.0.3-0.20180322193309-b565731e1464+incompatible // indirect
github.com/dgraph-io/badger v1.6.0 // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/etcd-io/bbolt v1.3.3 // indirect
github.com/fasthttp-contrib/websocket v0.0.0-20160511215533-1f3b11f56072 // indirect
github.com/flosch/pongo2 v0.0.0-20190707114632-bbf5a6c351f4 // indirect
github.com/gavv/httpexpect v2.0.0+incompatible // indirect
github.com/getsentry/sentry-go v0.28.1
github.com/gomodule/redigo v1.7.1-0.20190724094224-574c33c3df38 // indirect
github.com/hashicorp/go-version v1.2.0 // indirect
github.com/iris-contrib/blackfriday v2.0.0+incompatible // indirect
github.com/iris-contrib/i18n v0.0.0-20171121225848-987a633949d0 // indirect
github.com/k0kubun/colorstring v0.0.0-20150214042306-9440f1994b88 // indirect
github.com/klauspost/cpuid v1.2.1 // indirect
github.com/mediocregopher/mediocre-go-lib v0.0.0-20181029021733-cb65787f37ed // indirect
github.com/moul/http2curl v1.0.0 // indirect
github.com/pusher/pusher-http-go v4.0.1+incompatible
github.com/ryanuber/columnize v2.1.0+incompatible // indirect
github.com/shurcooL/sanitized_anchor_name v1.0.0 // indirect
github.com/smartystreets/goconvey v1.6.4 // indirect
golang.org/x/crypto v0.24.0 // indirect
gopkg.in/go-playground/assert.v1 v1.2.1 // indirect
gopkg.in/go-playground/validator.v8 v8.18.2 // indirect
)
Loading

0 comments on commit d5b1d48

Please sign in to comment.