Skip to content

Commit

Permalink
move frontend to a dedicated repository
Browse files Browse the repository at this point in the history
  • Loading branch information
khanzadimahdi committed Jan 18, 2025
1 parent 8bd9466 commit 6bb0156
Show file tree
Hide file tree
Showing 807 changed files with 11 additions and 24,977 deletions.
10 changes: 0 additions & 10 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,3 @@ MAIL_SMTP_PORT=1025

# messaging
NATS_URL=nats:4222

## frontend
INTERNAL_BACKEND_BASE_URL=https://backend.tarhche.com
NEXT_PUBLIC_FILES_PROTOCOL=https
NEXT_PUBLIC_FILES_HOST=backend.tarhche.com

## frontend local
# INTERNAL_BACKEND_BASE_URL=http://app
# NEXT_PUBLIC_FILES_PROTOCOL=http
# NEXT_PUBLIC_FILES_HOST=127.0.0.1
18 changes: 4 additions & 14 deletions .github/workflows/backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,7 @@ name: Backend CI and CD

on:
push:
paths:
- .github/**
- backend/**
pull_request:
paths:
- .github/**
- backend/**

defaults:
run:
working-directory: ./backend

env:
REGISTRY: ghcr.io
Expand Down Expand Up @@ -41,8 +31,8 @@ jobs:
- name: Build image
uses: ./.github/actions/docker-build
with:
context: ./backend
dockerfile: ./backend/Dockerfile
context: .
dockerfile: Dockerfile
image-name: ${{ env.IMAGE_NAME }}
target: production
push: false
Expand All @@ -67,8 +57,8 @@ jobs:
- name: Build and push image
uses: ./.github/actions/docker-build
with:
context: ./backend
dockerfile: ./backend/Dockerfile
context: .
dockerfile: Dockerfile
image-name: ${{ env.IMAGE_NAME }}
target: production
push: true
Expand Down
117 changes: 0 additions & 117 deletions .github/workflows/frontend.yaml

This file was deleted.

2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@

/private
/private.pub
/tmp
/tmp
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
27 changes: 0 additions & 27 deletions backend/.env

This file was deleted.

4 changes: 0 additions & 4 deletions backend/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion backend/README.md

This file was deleted.

File renamed without changes.
19 changes: 6 additions & 13 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# app placement
x-app: &app
build:
context: ./backend
context: .
dockerfile: Dockerfile
target: develop
restart: unless-stopped
Expand All @@ -10,7 +10,7 @@ x-app: &app
- minio
- minio_configure
volumes:
- ./backend:/opt/app
- ./:/opt/app
environment:
PRIVATE_KEY: ${PRIVATE_KEY}
S3_ENDPOINT: ${S3_ENDPOINT}
Expand All @@ -33,23 +33,16 @@ x-app: &app

services:
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
target: develop
image: ghcr.io/tarhche/frontend:latest
restart: unless-stopped
depends_on:
- app
ports:
- "3000:3000"
volumes:
- ./frontend:/opt/app
environment:
INTERNAL_BACKEND_BASE_URL: ${INTERNAL_BACKEND_BASE_URL}
NEXT_PUBLIC_FILES_PROTOCOL: ${NEXT_PUBLIC_FILES_PROTOCOL}
NEXT_PUBLIC_FILES_HOST: ${NEXT_PUBLIC_FILES_HOST}
command: >
sh -c "npm install; npm run dev -- --hostname \"0.0.0.0\" --port 3000"
INTERNAL_BACKEND_BASE_URL: "http://app"
NEXT_PUBLIC_FILES_PROTOCOL: "http"
NEXT_PUBLIC_FILES_HOST: "localhost:8000"

app:
<<: *app
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 0 additions & 3 deletions frontend/.env.local.example

This file was deleted.

13 changes: 0 additions & 13 deletions frontend/.eslintrc.json

This file was deleted.

38 changes: 0 additions & 38 deletions frontend/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion frontend/.prettierignore

This file was deleted.

9 changes: 0 additions & 9 deletions frontend/.prettierrc

This file was deleted.

10 changes: 0 additions & 10 deletions frontend/.vscode/extensions.json

This file was deleted.

7 changes: 0 additions & 7 deletions frontend/.vscode/global.code-snippets

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/.vscode/settings.json

This file was deleted.

26 changes: 0 additions & 26 deletions frontend/Dockerfile

This file was deleted.

1 change: 0 additions & 1 deletion frontend/README.md

This file was deleted.

Loading

0 comments on commit 6bb0156

Please sign in to comment.