Skip to content

Update node packages #247

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

Merged
merged 1 commit into from
May 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
6 changes: 3 additions & 3 deletions .env.sample
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# endpoint for API
NUXT_PUBLIC_COMMUNITY_API_URL=
NUXT_PUBLIC_AUTH_BASE_URL=
NUXT_PUBLIC_COMMUNITY_API_URL=http://localhost:5000/v2
NUXT_PUBLIC_AUTH_BASE_URL=http://localhost:5000
NUXT_PUBLIC_TARGET_ENV=
NUXT_PUBLIC_BUILD_COMMIT_SHA=
NUXT_PUBLIC_BUILD_NUMBER=
Expand All @@ -9,4 +9,4 @@ NUXT_PUBLIC_BUILD_COMMIT_LINK=
NUXT_PUBLIC_BUILD_REPO_LINK=
NUXT_PUBLIC_BUILD_TIMESTAMP=
NUXT_PUBLIC_DEBUG=
NUXT_PUBLIC_SESSION_COOKIE_NAME=
NUXT_PUBLIC_SESSION_COOKIE_NAME=
21 changes: 0 additions & 21 deletions .eslintrc.js

This file was deleted.

4 changes: 4 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
.nuxt
dist
build
4 changes: 0 additions & 4 deletions .prettierrc

This file was deleted.

6 changes: 6 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"tabWidth": 2,
"vueIndentScriptAndStyle": true
}
7 changes: 3 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ ARG USER=node DRONE_COMMIT_SHA=${DRONE_COMMIT_SHA} DRONE_BUILD_NUMBER=${DRONE_BU
###########
# BUILDER #
###########
FROM node:18.14.0 AS builder

FROM node:22.15.0 AS builder

# copy build context and install dependencinpm res
WORKDIR /workspace
Expand All @@ -18,7 +17,7 @@ RUN npm run build
###########
# PROJECT #
###########
FROM node:18-slim
FROM node:22-slim

# pass the global args
ARG USER
Expand All @@ -44,4 +43,4 @@ ENV NUXT_PUBLIC_BUILD_COMMIT_SHA=${DRONE_COMMIT_SHA} NUXT_PUBLIC_BUILD_NUMBER=${
EXPOSE ${PORT}

# run for production
CMD [ "node", "/app/.output/server/index.mjs"]
CMD [ "node", "/app/.output/server/index.mjs"]
49 changes: 49 additions & 0 deletions compose.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
services:
# Nuxt Frontend
# web:
# container_name: community-web
# build:
# context: .
# environment:
# NUXT_COMMUNITY_API_URL: http://api:8080
# PORT: 3000
# HOST: '0.0.0.0'
# ports:
# - '3000:3000'
# volumes:
# - ./:/app/
# command: npm run dev

# Nest Backend
api:
container_name: community-api
image: josaorg/community-api:latest
env_file: .env
environment:
- DATABASE_HOST=db
- DATABASE_PORT=5432
- DATABASE_USER=root
- DATABASE_PASSWORD=root
- DATABASE_NAME=hub_dev
- REDIS_HOST=redis
- REDIS_PORT=6379
# - TARGET_ENV='development'
depends_on:
- db
- redis
# command: npm run start:dev
redis:
image: 'bitnami/redis:latest'
environment:
- ALLOW_EMPTY_PASSWORD=yes
ports:
- 6379:6379
db:
container_name: community-db
image: postgres:14.3
ports:
- '6543:5432'
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=root
- POSTGRES_DB=hub_dev
28 changes: 0 additions & 28 deletions docker-compose.yaml

This file was deleted.

11 changes: 11 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import withNuxt from './.nuxt/eslint.config.mjs'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'

export default withNuxt([eslintPluginPrettierRecommended]).override(
'nuxt/vue/rules',
{
rules: {
'vue/no-v-html': 'off',
},
},
)
Loading