Skip to content

Commit

Permalink
Merge pull request #866 from bounswe/development
Browse files Browse the repository at this point in the history
Merge to main
  • Loading branch information
elifkizilky authored Dec 26, 2023
2 parents 8bf3e44 + 18166f3 commit 54559ff
Show file tree
Hide file tree
Showing 207 changed files with 37,984 additions and 3,304 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/frontend-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
uses: actions/checkout@v2

- name: Build the Docker image
run: docker build ludos/frontend -t frontend --target=prod --build-arg REACT_APP_API_URL=3.125.225.39:8080
run: docker build ludos/frontend -t frontend --target=prod --build-arg REACT_APP_API_URL=164.92.195.35:8080

- name: Save Docker image
run: docker save frontend | gzip > frontend.tar.gz
Expand All @@ -42,4 +42,4 @@ jobs:
cd ~/frontend
sudo docker load -i frontend.tar.gz
sudo docker run -p 3000:3000 --name frontend -d frontend
docker image prune -af && docker builder prune -f && docker builder prune -af --filter until=10m && docker volume prune -af
docker image prune -af && docker builder prune -f && docker builder prune -af --filter until=10m && docker volume prune -af
1 change: 1 addition & 0 deletions bounswe2023group7
Submodule bounswe2023group7 added at 32b0b4
4 changes: 2 additions & 2 deletions ludos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Before you begin, ensure you have the following installed:


### Deployed Version of frontend
Go to our website link which is http://51.20.170.143:3000/.
Go to our website link which we shared via Discord channel of the course.

## How to run mobile app?
- You can download APK version of the app from [here](https://drive.google.com/file/d/1h2x1MLO_yyUC1Tq7dmDcOutZYBKyXXKt/view?usp=sharing) and directly run it in your Android device.
Expand All @@ -47,7 +47,7 @@ Go to our website link which is http://51.20.170.143:3000/.
- Then you can easily run the application on Android Studio following [this guide](https://www.geeksforgeeks.org/how-to-import-existing-flutter-project-in-android-studio/).

## How to run backend application?
Deployed Swagger Documentation: http://3.125.225.39:8080/api
Deployed Swagger Documentation: http://164.92.195.35:8080/api

```WORKDIR=./ludos/backend```<br/>
1. Create a .env file for the environment variables. Please ask for the variables. The name of the variables are included in .env.example file. <br/>
Expand Down
2 changes: 2 additions & 0 deletions ludos/annotation/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
25 changes: 25 additions & 0 deletions ludos/annotation/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = {
parser: '@typescript-eslint/parser',
parserOptions: {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module',
},
plugins: ['@typescript-eslint/eslint-plugin'],
extends: [
'plugin:@typescript-eslint/recommended',
'plugin:prettier/recommended',
],
root: true,
env: {
node: true,
jest: true,
},
ignorePatterns: ['.eslintrc.js'],
rules: {
'@typescript-eslint/interface-name-prefix': 'off',
'@typescript-eslint/explicit-function-return-type': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-explicit-any': 'off',
},
};
37 changes: 37 additions & 0 deletions ludos/annotation/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# compiled output
/dist
/node_modules

# Logs
logs
*.log
npm-debug.log*
pnpm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# OS
.DS_Store

# Tests
/coverage
/.nyc_output

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

.env
4 changes: 4 additions & 0 deletions ludos/annotation/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"singleQuote": true,
"trailingComma": "all"
}
7 changes: 7 additions & 0 deletions ludos/annotation/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM node:19
WORKDIR /app
COPY package.json /app/
COPY package-lock.json /app/
RUN npm install
CMD [ "npm", "start" ]
COPY . /app/
6 changes: 6 additions & 0 deletions ludos/annotation/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# LUDOS Annotation Server
Deployed Swagger Documentation: http://35.157.67.64:8090/api
## How to run?
```WORKDIR=./ludos/annotation```<br/>
1. Run ```docker compose up --build``` <br/>
2. Now, the api is available with localhost:8090 base url.
22 changes: 22 additions & 0 deletions ludos/annotation/docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
version: '3.9'

services:
annotation:
image: ludos-annotation
build: .
ports:
- 8090:8090
links:
- postgres
postgres:
image: postgres:14-alpine
ports:
- 45432:5432
volumes:
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=user
- POSTGRES_DB=annotation
volumes:
postgres:
25 changes: 25 additions & 0 deletions ludos/annotation/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
version: '3.9'

services:
annotation:
image: ludos-annotation
build: .
command: "npm run start:dev"
volumes:
- ./src:/app/src
ports:
- 8090:8090
links:
- postgres
postgres:
image: postgres:14-alpine
ports:
- 45432:5432
volumes:
- postgres:/var/lib/postgresql/data
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=user
- POSTGRES_DB=annotation
volumes:
postgres:
10 changes: 10 additions & 0 deletions ludos/annotation/nest-cli.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://json.schemastore.org/nest-cli",
"collection": "@nestjs/schematics",
"sourceRoot": "src",
"compilerOptions": {
"deleteOutDir": true,
"builder":"swc",
"typeCheck": true
}
}
Loading

0 comments on commit 54559ff

Please sign in to comment.