-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
1,165 additions
and
5,269 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,32 @@ | ||
# This workflow will install backend's requirements and run tests | ||
|
||
name: Run Backend Tests | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
pytest: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: '3.11' | ||
- name: Install dependencies | ||
run: | | ||
cd ./backend | ||
python -m pip install --upgrade pip | ||
python -m pip install -r requirements.txt | ||
python -m pip install -r requirements-test.txt | ||
- name: Test with pytest | ||
run: | | ||
cd ./backend/test && python -m pytest |
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 |
---|---|---|
@@ -1,19 +1,19 @@ | ||
# Appointment frontend configuration. | ||
|
||
# -- Frontend -- | ||
VUE_APP_BASE_URL=localhost:8080 | ||
VUE_APP_SHORT_BASE_URL=localhost:8080/user | ||
VITE_BASE_URL=localhost:8080 | ||
VITE_SHORT_BASE_URL=localhost:8080/user | ||
|
||
# -- Backend API -- | ||
VUE_APP_API_URL=localhost | ||
VUE_APP_API_PORT=8090 | ||
VUE_APP_API_SECURE=false | ||
VITE_API_URL=localhost | ||
VITE_API_PORT=8090 | ||
VITE_API_SECURE=false | ||
|
||
# -- Sentry -- | ||
VUE_APP_SENTRY_DSN= | ||
VITE_SENTRY_DSN= | ||
|
||
# -- Auth scheme -- | ||
VUE_APP_AUTH_SCHEME=password | ||
VITE_AUTH_SCHEME=password | ||
|
||
# For fxa | ||
VUE_APP_FXA_EDIT_PROFILE= | ||
VITE_FXA_EDIT_PROFILE= |
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,11 +1,11 @@ | ||
# Production env config, do not put secrets in here !! | ||
VUE_APP_API_URL=stage.appointment.day/api/v1/ | ||
VUE_APP_BASE_URL=stage.appointment.day | ||
VUE_APP_API_SECURE=true | ||
VUE_APP_SHORT_BASE_URL=https://stage.apmt.day | ||
VITE_API_URL=stage.appointment.day/api/v1/ | ||
VITE_BASE_URL=stage.appointment.day | ||
VITE_API_SECURE=true | ||
VITE_SHORT_BASE_URL=https://stage.apmt.day | ||
|
||
# -- Auth scheme -- | ||
VUE_APP_AUTH_SCHEME=fxa | ||
VITE_AUTH_SCHEME=fxa | ||
|
||
# For fxa | ||
VUE_APP_FXA_EDIT_PROFILE=https://accounts.stage.mozaws.net/settings | ||
VITE_FXA_EDIT_PROFILE=https://accounts.stage.mozaws.net/settings |
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,34 +1,40 @@ | ||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
'plugin:vue/vue3-essential', | ||
'airbnb-base', | ||
], | ||
overrides: [], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
plugins: [ | ||
'vue', | ||
], | ||
rules: { | ||
'import/extensions': ['error', 'ignorePackages', { | ||
'': 'never', | ||
js: 'never', | ||
vue: 'off', // TODO: once migrated to Vite, we should set this to 'always' | ||
}], | ||
'max-len': ['error', { code: 120 }], | ||
'no-param-reassign': 'off', | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
webpack: { | ||
config: require.resolve('@vue/cli-service/webpack.config.js'), | ||
}, | ||
}, | ||
}, | ||
}; | ||
/* eslint-env node */ | ||
require('@rushstack/eslint-patch/modern-module-resolution'); | ||
|
||
module.exports = { | ||
env: { | ||
browser: true, | ||
es2021: true, | ||
}, | ||
extends: [ | ||
'plugin:vue/vue3-essential', | ||
'airbnb-base', | ||
], | ||
overrides: [], | ||
parserOptions: { | ||
ecmaVersion: 'latest', | ||
sourceType: 'module', | ||
}, | ||
plugins: [ | ||
'vue', | ||
], | ||
rules: { | ||
'import/extensions': ['error', 'ignorePackages', { | ||
'': 'never', | ||
js: 'never', | ||
vue: 'off', | ||
}], | ||
'max-len': ['error', {code: 120}], | ||
'no-param-reassign': 'off', | ||
}, | ||
settings: { | ||
'import/resolver': { | ||
alias: { | ||
map: [ | ||
['@', './src'], | ||
], | ||
extensions: ['.js', '.vue'], | ||
}, | ||
}, | ||
}, | ||
}; |
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 |
---|---|---|
|
@@ -22,3 +22,6 @@ pnpm-debug.log* | |
*.njsproj | ||
*.sln | ||
*.sw? | ||
|
||
# Sentry Config File | ||
.env.sentry-build-plugin |
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,13 +1,13 @@ | ||
FROM node:lts-alpine | ||
|
||
WORKDIR /app | ||
|
||
ENV PATH /app/node_modules/.bin:$PATH | ||
|
||
# Get git | ||
RUN apk add --no-cache git | ||
|
||
COPY . . | ||
RUN yarn install | ||
|
||
CMD vue-cli-service serve | ||
FROM node:lts-alpine | ||
|
||
WORKDIR /app | ||
|
||
ENV PATH /app/node_modules/.bin:$PATH | ||
|
||
# Get git | ||
RUN apk add --no-cache git | ||
|
||
COPY . . | ||
RUN yarn install | ||
|
||
CMD vite dev --port 8080 |
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 |
---|---|---|
@@ -1,20 +1,9 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES6", | ||
"module": "esnext", | ||
"baseUrl": "./", | ||
"moduleResolution": "node", | ||
"jsx": "preserve", | ||
"paths": { | ||
"@/*": [ | ||
"src/*" | ||
] | ||
}, | ||
"lib": [ | ||
"esnext", | ||
"dom", | ||
"dom.iterable", | ||
"scripthost" | ||
] | ||
} | ||
"@/*": ["./src/*"] | ||
} | ||
}, | ||
"exclude": ["node_modules", "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
Oops, something went wrong.