-
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.
- Loading branch information
Showing
46 changed files
with
18,416 additions
and
1 deletion.
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,17 @@ | ||
# This file specifies files that are *not* uploaded to Google Cloud | ||
# using gcloud. It follows the same syntax as .gitignore, with the addition of | ||
# "#!include" directives (which insert the entries of the given .gitignore-style | ||
# file at that point). | ||
# | ||
# For more information, run: | ||
# $ gcloud topic gcloudignore | ||
# | ||
.gcloudignore | ||
# If you would like to upload your .git directory, .gitignore file or files | ||
# from your .gitignore file, remove the corresponding line | ||
# below: | ||
.git | ||
.gitignore | ||
|
||
# Node.js dependencies: | ||
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 |
---|---|---|
@@ -0,0 +1,59 @@ | ||
name: CI / CD | ||
on: [push] | ||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: npm install echarts | ||
- run: cd front; npm install; cd .. | ||
- run: cd front; npm run build; cd .. | ||
- run: npm install | ||
- run: npx playwright install --with-deps | ||
- run: npm run test-ASB | ||
- run: npx playwright test | ||
|
||
|
||
deploy: | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
environment: production | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Authenticate to Google Cloud | ||
env: | ||
GOOGLE_APPLICATION_CREDENTIALS: ${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }} | ||
run: | | ||
echo '${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}' > /tmp/credentials.json | ||
gcloud auth activate-service-account --key-file=/tmp/credentials.json | ||
- name: Set up Google Cloud SDK | ||
uses: google-github-actions/setup-gcloud@v1 | ||
with: | ||
project_id: 'sos2324-jul-asb' | ||
|
||
- name: Use gcloud CLI | ||
run: gcloud info | ||
|
||
- name: Install npm dependencies | ||
run: npm install echarts | ||
|
||
- name: Install frontend dependencies | ||
run: | | ||
cd front | ||
npm install | ||
cd .. | ||
- name: Build frontend | ||
run: | | ||
cd front | ||
npm run build | ||
cd .. | ||
- name: Deploy to App Engine | ||
run: gcloud app deploy --quiet | ||
|
||
|
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 |
---|---|---|
|
@@ -128,3 +128,5 @@ dist | |
.yarn/build-state.yml | ||
.yarn/install-state.gz | ||
.pnp.* | ||
|
||
gc-sa-key.json |
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,20 @@ | ||
# Base image | ||
FROM node:latest | ||
|
||
|
||
# Move to app folder | ||
WORKDIR /usr/src/app | ||
|
||
|
||
# Install app dependencies | ||
COPY package*.json ./ | ||
|
||
|
||
# Install app dependencies | ||
RUN npm install | ||
|
||
|
||
# Copy the app code to the image | ||
COPY . . | ||
EXPOSE 8080 | ||
CMD [ "npm", "start" ] |
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 +1,17 @@ | ||
# sos2324-dic-sss | ||
# SOS2324-DIC-ASB | ||
|
||
- **Team** | ||
- [Antonio Suero Baeza](https://github.com/antsuebae) | ||
- **Project description**: Our project is based on analyzing the different types of vehicles motors in Europe. | ||
|
||
- **Repository**: [gti-sos/SOS2324-DIC-ASB](https://github.com/gti-sos/sos2324-dic-sss.git) | ||
|
||
- **URL**: [SOS2324-DIC-ASB](http://sos2324-dic-asb.appspot.com) | ||
|
||
- **APIs**: | ||
- ASB: [API-V1](http://sos2324-dic-asb.appspot.com/api/v1/cars-by-motor/docs) (developed by Antonio Suero Baeza) | ||
- ASB: [API-V2](http://sos2324-dic-asb.appspot.com/api/v2/cars-by-motor/docs) (developed by Antonio Suero Baeza) | ||
- **FRONT-END**: | ||
- ASB: [FrontEnd-ASB](http://sos2324-dic-asb.appspot.com/cars-by-motor) (developed by Antonio Suero Baeza) | ||
- **Docker**: | ||
- docker run -p 12000:8080 -d "antsuebae03/sos2324-dic-asb:0.0.2" |
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 @@ | ||
runtime: nodejs20 |
Oops, something went wrong.