Skip to content

Commit

Permalink
chore: cleanup backend files
Browse files Browse the repository at this point in the history
  • Loading branch information
davidyuk committed May 13, 2023
1 parent c412d3f commit 1675248
Show file tree
Hide file tree
Showing 25 changed files with 1,179 additions and 6,083 deletions.
1 change: 0 additions & 1 deletion .dockerignore

This file was deleted.

11 changes: 11 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*

!package*
!config
!public
!src
!.env
!.postcssrc.js
!babel.config.js
!vue.config.js
!docker/nginx
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VUE_APP_REMOTE_CONNECTION_BACKEND_URL=https://signaling.aepps.com
VUE_APP_VAPID_PUBLIC_KEY=BJP4PnSPRizQofIOBhe8o-AlaElRYbp7Mi_nirXzPYkJPkZfu-ONL7M14Y2c_q9LfU1K3XUcwzfx3lNM_jBLJrc
VUE_APP_BACKEND_URL=https://stage-signaling.aepps.com
VUE_APP_VAPID_PUBLIC_KEY=BHkQhNWW2TKfKfxo7vAgXkZGcVOXGrjhIZJlN1hKp6abIjWJgO8FYPswXJ35XEuKw46O9yZ-8KmsZ4-TXNBePcw
VUE_APP_HOME_PAGE_URL=https://registry.aepps.tech
7 changes: 7 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ module.exports = {
globals: {
ENV_MOBILE_DEVICE: true,
},
ignorePatterns: ['dist', 'www'],
extends: [
'plugin:vue/recommended',
'plugin:@intlify/vue-i18n/recommended',
Expand Down Expand Up @@ -54,6 +55,12 @@ module.exports = {
env: {
jest: true,
},
}, {
files: 'backend/**',
rules: {
'import/no-extraneous-dependencies': ['error', { packageDir: 'backend' }],
'import/extensions': ['error', 'ignorePackages'],
},
}],
settings: {
'vue-i18n': {
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,9 @@ jobs:
with:
path: ~/.npm
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
- run: npm ci
working-directory: 'backend'
- run: npm test
working-directory: 'backend'
- run: npm ci --legacy-peer-deps # TODO: remove --legacy-peer-deps after updating dependencies
- run: npm test
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ ARG VUE_APP_NODE_URL
ARG VUE_APP_MDW_URL
ARG VUE_APP_EXPLORER_URL
ARG VUE_APP_COMPILER_URL
ARG VUE_APP_REMOTE_CONNECTION_BACKEND_URL
ARG VUE_APP_BACKEND_URL

# TODO: remove legacy openssl after updating @vue/cli
RUN NODE_OPTIONS=--openssl-legacy-provider npm run build

FROM nginx:1.24-alpine
COPY ./nginx/nginx.conf /etc/nginx/nginx.conf
COPY ./nginx/default.conf /etc/nginx/conf.d/default.conf
COPY docker/nginx/nginx.conf /etc/nginx/nginx.conf
COPY docker/nginx/default.conf /etc/nginx/conf.d/default.conf
COPY --from=aepp-aepp-base-build /app/dist /usr/share/nginx/html
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ISC License

Copyright (c) 2017, aeternity developers
Copyright (c) 2023, aeternity developers

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
Expand Down
9 changes: 0 additions & 9 deletions backend/.babelrc

This file was deleted.

3 changes: 0 additions & 3 deletions backend/.dockerignore

This file was deleted.

9 changes: 0 additions & 9 deletions backend/.editorconfig

This file was deleted.

8 changes: 0 additions & 8 deletions backend/.eslintrc.json

This file was deleted.

14 changes: 0 additions & 14 deletions backend/.gitignore

This file was deleted.

3 changes: 0 additions & 3 deletions backend/.travis.yml

This file was deleted.

13 changes: 7 additions & 6 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM node:10

WORKDIR /usr/src/app
FROM node:18-alpine
WORKDIR /app

COPY package*.json ./
RUN npm install
RUN npm ci

COPY src src
EXPOSE 80
ENV PORT=80

COPY . .
EXPOSE 8079
CMD [ "npm", "start" ]
15 changes: 0 additions & 15 deletions backend/LICENSE

This file was deleted.

Loading

0 comments on commit 1675248

Please sign in to comment.