-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #64 from WildCodeSchool/staging
Staging
- Loading branch information
Showing
210 changed files
with
28,220 additions
and
8,140 deletions.
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,6 @@ | ||
**/dist | ||
*.log | ||
*.md | ||
.git | ||
build/ | ||
**/node_modules |
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,3 +1,28 @@ | ||
## Client | ||
|
||
# if VITE_NODE_ENV === production, | ||
# AuthGuard is on | ||
VITE_NODE_ENV="dev" | ||
|
||
# Server location change to /graphql in staging or prod | ||
VITE_API_URL="http://localhost:3200" | ||
|
||
## Server | ||
|
||
DBNAME=YOUR_DBNAME | ||
DBUSERNAME=YOUR_DBUSERNAME | ||
DBPASS=YOUR_DB_PASS | ||
DBPASS=YOUR_DB_PASS | ||
|
||
# URL | ||
FRONTEND_URL="http://localhost:4200" | ||
|
||
# smtp | ||
SMTP_HOST="" | ||
SMTP_PORT= | ||
SMTP_USER='' | ||
SMTP_PASS='' | ||
|
||
# change emailservices initialization when this value === "production" | ||
NODE_ENV="dev" | ||
|
||
JWTSECRETKEY="JWTSECRETKEY" |
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,54 @@ | ||
name: Compile and push client image | ||
|
||
|
||
on: | ||
push: | ||
branches: ["main"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
|
||
|
||
build: | ||
|
||
|
||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
# login with Docker | ||
|
||
- uses: docker/login-action@v3 | ||
name: Login to Docker Hub | ||
|
||
with: | ||
|
||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
|
||
|
||
# prepare buildx for docker | ||
|
||
- uses: docker/setup-buildx-action@v3 | ||
name: Set up Docker Buildx | ||
|
||
|
||
# build and push the newly created image | ||
|
||
- uses: docker/build-push-action@v5 | ||
name: Build and push | ||
|
||
with: | ||
|
||
context: ./client | ||
file: ./client/Dockerfile | ||
push: true | ||
|
||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/prod_client_pawplanner:latest |
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,54 @@ | ||
name: Compile and push server image | ||
|
||
|
||
on: | ||
|
||
|
||
push: | ||
branches: ["main"] | ||
|
||
|
||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
|
||
build: | ||
|
||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
|
||
# login with Docker | ||
|
||
- uses: docker/login-action@v3 | ||
name: Login to Docker Hub | ||
|
||
with: | ||
|
||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
|
||
|
||
# prepare buildx for docker | ||
|
||
- uses: docker/setup-buildx-action@v3 | ||
name: Set up Docker Buildx | ||
|
||
|
||
# build and push the newly created image | ||
|
||
- uses: docker/build-push-action@v5 | ||
name: Build and push | ||
|
||
with: | ||
|
||
context: ./server | ||
file: ./server/Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/prod_server_pawplanner:latest |
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,54 @@ | ||
name: Compile and push client image | ||
|
||
|
||
on: | ||
push: | ||
branches: ["staging"] | ||
|
||
# Allows you to run this workflow manually from the Actions tab | ||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
|
||
|
||
build: | ||
|
||
|
||
runs-on: ubuntu-latest | ||
|
||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
# login with Docker | ||
|
||
- uses: docker/login-action@v3 | ||
name: Login to Docker Hub | ||
|
||
with: | ||
|
||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
|
||
|
||
# prepare buildx for docker | ||
|
||
- uses: docker/setup-buildx-action@v3 | ||
name: Set up Docker Buildx | ||
|
||
|
||
# build and push the newly created image | ||
|
||
- uses: docker/build-push-action@v5 | ||
name: Build and push | ||
|
||
with: | ||
|
||
context: ./client | ||
file: ./client/Dockerfile | ||
push: true | ||
|
||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/staging_client_pawplanner:latest |
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,54 @@ | ||
name: Compile and push server image | ||
|
||
|
||
on: | ||
|
||
|
||
push: | ||
branches: ["staging"] | ||
|
||
|
||
workflow_dispatch: | ||
|
||
|
||
jobs: | ||
|
||
build: | ||
|
||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v4 | ||
|
||
|
||
# login with Docker | ||
|
||
- uses: docker/login-action@v3 | ||
name: Login to Docker Hub | ||
|
||
with: | ||
|
||
username: ${{ secrets.DOCKER_HUB_USERNAME }} | ||
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }} | ||
|
||
|
||
|
||
# prepare buildx for docker | ||
|
||
- uses: docker/setup-buildx-action@v3 | ||
name: Set up Docker Buildx | ||
|
||
|
||
# build and push the newly created image | ||
|
||
- uses: docker/build-push-action@v5 | ||
name: Build and push | ||
|
||
with: | ||
|
||
context: ./server | ||
file: ./server/Dockerfile | ||
push: true | ||
tags: ${{ secrets.DOCKER_HUB_USERNAME }}/staging_server_pawplanner:latest |
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 |
---|---|---|
|
@@ -25,4 +25,7 @@ dist-ssr | |
**/.env | ||
.env | ||
*/node_modules | ||
/db_data | ||
/db_data | ||
|
||
# Upload | ||
**server/upload |
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,5 @@ | ||
npm run check-format || { | ||
echo "🚨 Your code is not properly formatted. Please run 'npm run format' in the root directory to fix the formatting." | ||
echo "Once formatted, you will need to run 'git add' again before committing." | ||
exit 1 | ||
} |
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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions
1
_ressources/conception_ressources/assets/sequences/ForgotPassword.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
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,2 @@ | ||
#!/bin/bash | ||
docker compose exec client /bin/bash -c "npm install $*" |
Oops, something went wrong.