Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #9

Merged
merged 25 commits into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
fe22a3b
feat: Update version and changelog details in AppService
PlutonusDev Jul 22, 2024
28f7386
fix: Update HoppiesInterface parser in app.service.ts
PlutonusDev Jul 23, 2024
7624c47
feat: Update latestVersion and availableDownloads version
PlutonusDev Jul 23, 2024
e612c05
feat: Update app version and changelog in AppService
PlutonusDev Jul 23, 2024
fc5d74b
feat: added nestjs schedule and axios package.json
PlutonusDev Jul 28, 2024
201ac3f
feat: add data controller, service and module
PlutonusDev Jul 28, 2024
ac3b109
refactor: update fetchNetworkData method in DataService
PlutonusDev Jul 28, 2024
c6c03f9
refactor: remove unused axios import from.ts
PlutonusDev Jul 28, 2024
e46e9aa
feat: updated data fetching API endpoint
PlutonusDev Jul 28, 2024
6684623
feat: add ScheduleModule to app.module
PlutonusDev Jul 30, 2024
724fc72
fix: extend ATSU logout schedule time
PlutonusDev Jul 31, 2024
d998cf9
fix: updated version details in app.service.ts
PlutonusDev Jul 31, 2024
7ca9e44
feat: Added sentry configuration to .env.example
PlutonusDev Aug 11, 2024
af1708d
feat: added .env.development and .env.sentry-build-plugin to .gitignore
PlutonusDev Aug 11, 2024
906402b
build: add sentry webpack plugin to config file
PlutonusDev Aug 11, 2024
117e309
feat: Added new dependencies to package.json
PlutonusDev Aug 11, 2024
325f39a
build: Add Dockerfile and docker-compose.yml for development environm…
PlutonusDev Aug 11, 2024
c409802
feat: Integrated Sentry for error tracking and profiling
PlutonusDev Aug 11, 2024
258bbb8
feat: formatted files
PlutonusDev Aug 11, 2024
01e61dd
test: add placeholder test case in app controller spec
PlutonusDev Aug 11, 2024
63f9778
refactor: removed unused import and improved code formatting
PlutonusDev Aug 11, 2024
cf64e2e
style: formatting changes in app.module.ts
PlutonusDev Aug 11, 2024
6e909d8
feat: Added ATSUModule and DataModule to app.module.ts
PlutonusDev Aug 11, 2024
6a6d1bc
refactor: correct import syntax and utilize class instance in agenda …
PlutonusDev Aug 11, 2024
784451c
feat: Added production API configuration to docker-compose
PlutonusDev Aug 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
database_url="mongodb+srv://..."
port=8002
port=8002
sentry_auth_token="..."
sentry_dsn="..."
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ lerna-debug.log*

# dotenv environment variable files
.env
.env.development
.env.development.local
.env.test.local
.env.production.local
Expand All @@ -57,3 +58,6 @@ pids

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Sentry Config File
.env.sentry-build-plugin
11 changes: 11 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
ARG IMAGE=node:20.16-alpine

#COMMON
FROM $IMAGE AS builder
WORKDIR /app
COPY . .
RUN npm i

#DEV
FROM builder AS dev
CMD [""]
30 changes: 30 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
services:
api-dev:
build:
context: .
dockerfile: Dockerfile
target: dev
working_dir: /app
ports:
- 8802:8802
command: [sh, -c, "npm run prime && npm run build && npm start"]
env_file:
- .env.development
volumes:
- .:/app:delegated
- /app/node_modules

api-prod:
build:
context: .
dockerfile: Dockerfile
target: builder
working_dir: /app
ports:
- 8002:8002
command: [sh, -c, "npm run prime && npm run build && npm start"]
env_file:
- .env
volumes:
- .:/app:delegated
- /app/node_modules
10 changes: 9 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vatacars-server",
"version": "0.0.2",
"version": "0.1.0",
"description": "The backend server for vatACARS.",
"author": "vatACARS Team",
"private": true,
Expand All @@ -25,12 +25,20 @@
"@nestjs/common": "^10.0.0",
"@nestjs/config": "^3.2.3",
"@nestjs/core": "^10.0.0",
"@nestjs/microservices": "^10.3.10",
"@nestjs/mongoose": "^10.0.5",
"@nestjs/platform-express": "^10.0.0",
"@nestjs/schedule": "^4.1.0",
"@nestjs/throttler": "^6.0.0",
"@prisma/client": "^5.15.0",
"@sentry/cli": "^2.33.1",
"@sentry/nestjs": "^8.25.0",
"@sentry/profiling-node": "^8.25.0",
"@sentry/webpack-plugin": "^2.22.0",
"agenda": "^5.0.0",
"axios": "^1.7.2",
"mongoose": "^8.3.0",
"node-fetch": "2.6.7",
"prisma": "^5.15.0",
"reflect-metadata": "^0.2.0",
"rxjs": "^7.8.1"
Expand Down
Loading
Loading