Skip to content
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
8 changes: 4 additions & 4 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,8 @@ name: Docker
# latest and develop
# - when a pull request is created and updated to make sure the
# Dockerfile is still valid.
# To be able to push to dockerhub, this execpts the following
# To be able to push to dockerhub, this expects the following
# secrets to be set in the project:
# - NPM_TOKEN : NPM auth token for accessing private chemaxon NPM registry
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for taking care of this, @bodom0015

btw, you might want to remove @chemaxon:registry=https://hub.chemaxon.com/artifactory/api/npm/npm/ from .npmrc while you're at it

# - DOCKERHUB_USERNAME : username that can push to the org
# - DOCKERHUB_PASSWORD : password asscoaited with the username
on:
Expand Down Expand Up @@ -42,7 +41,6 @@ jobs:

- name: Authenticate with private NPM package
run: |
echo "//hub.chemaxon.com/artifactory/api/npm/npm/:_auth=${{ secrets.NPM_TOKEN }}" > $HOME/.npmrc
echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> $HOME/.npmrc
echo "npmrc_path=$HOME/.npmrc" >> "$GITHUB_ENV"

Expand Down Expand Up @@ -94,4 +92,6 @@ jobs:
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
build-args:
configuration=staging
configuration=staging
secret-files: |
NPMRC=${{env.npmrc_path}}
3 changes: 1 addition & 2 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
@chemaxon:registry=https://hub.chemaxon.com/artifactory/api/npm/npm/
@moleculemaker:registry=https://npm.pkg.github.com/
@moleculemaker:registry=https://npm.pkg.github.com/
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#

# Use official node image as the base image
FROM --platform=$BUILDPLATFORM node:22 as build
FROM --platform=$BUILDPLATFORM node:22 AS build

# Set the working directory
WORKDIR /usr/local/app
Expand All @@ -19,6 +19,7 @@ COPY package.json package-lock.json ./

# Install all the dependencies
RUN --mount=type=secret,id=NPMRC npm install
RUN npm install

# Add the source code to app
COPY angular.json entrypoint.sh tsconfig*.json package*.json proxy.conf.json tailwind.config.js ./
Expand Down
12 changes: 0 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,6 @@ This repo includes a library that helps build frontend application quickly.

## Development server

For marvin.js license add the following lines to the ~/.npmrc file:
```
@chemaxon:registry=https://hub.chemaxon.com/artifactory/api/npm/npm/
hub.chemaxon.com/artifactory/api/npm/npm/:_auth="<auth>"
hub.chemaxon.com/artifactory/api/npm/npm/:_password="<password>"
hub.chemaxon.com/artifactory/api/npm/npm/:username=<user>
hub.chemaxon.com/artifactory/api/npm/npm/:email=<email>
hub.chemaxon.com/artifactory/api/npm/npm/:always-auth=true
```

MMLI members can reach out to developers for the secrets. Non-MMLI members will need to make their own arrangements for a MarvinJS license.

Run `npm start` for a dev server. Navigate to `http://localhost:4200/`. The application will automatically reload if you change any of the source files.

## Code scaffolding
Expand Down
28 changes: 4 additions & 24 deletions angular.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,16 @@
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets",
{
"glob": "**/*",
"input": "node_modules/@chemaxon/marvinjs",
"output": "./assets/marvin-js"
}
"src/assets"
],
"styles": [
"src/app/css/primeng_theme.scss",
"node_modules/primeng/resources/primeng.min.css",
"node_modules/primeicons/primeicons.css",
"src/styles.scss",
"src/app/css/styles.scss",
"node_modules/@chemaxon/marvinjs/gui/css/editor.css"
"src/app/css/styles.scss"
],
"scripts": [
"node_modules/@chemaxon/marvinjs/gui/lib/promise-1.0.0.min.js",
"node_modules/@chemaxon/marvinjs/js/marvinjslauncher.js",
"node_modules/@chemaxon/marvinjs/js/util.js",
"node_modules/@chemaxon/marvinjs/js/webservices.js",
"node_modules/chart.js/dist/chart.js"
],
"browser": "src/main.ts"
Expand Down Expand Up @@ -140,26 +130,16 @@
"inlineStyleLanguage": "scss",
"assets": [
"src/favicon.ico",
"src/assets",
{
"glob": "**/*",
"input": "node_modules/@chemaxon/marvinjs",
"output": "./assets/marvin-js"
}
"src/assets"
],
"styles": [
"node_modules/primeng/resources/themes/lara-light-blue/theme.css",
"node_modules/primeng/resources/primeng.min.css",
"node_modules/primeicons/primeicons.css",
"src/styles.scss",
"src/app/css/styles.scss",
"node_modules/@chemaxon/marvinjs/gui/css/editor.css"
"src/app/css/styles.scss"
],
"scripts": [
"node_modules/@chemaxon/marvinjs/gui/lib/promise-1.0.0.min.js",
"node_modules/@chemaxon/marvinjs/js/marvinjslauncher.js",
"node_modules/@chemaxon/marvinjs/js/util.js",
"node_modules/@chemaxon/marvinjs/js/webservices.js"
]
}
}
Expand Down
83 changes: 0 additions & 83 deletions docker-compose.marvin.yaml

This file was deleted.

1 change: 0 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ secrets:
networks:
proxy:


services:
cleandb:
image: moleculemaker/cleandb-frontend:localdev
Expand Down
7 changes: 0 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
"@angular/platform-browser": "^18.2.7",
"@angular/platform-browser-dynamic": "^18.2.7",
"@angular/router": "^18.2.7",
"@chemaxon/marvinjs": "^23.11.0",
"@ngrx/store": "^1.0.0",
"chart.js": "^3",
"ngx-matomo-client": "^6.3.1",
Expand Down
27 changes: 1 addition & 26 deletions proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,26 +1 @@
{
"/rest-v1": {
"localTarget": "http://localhost:8080",
"target": "https://marvinjs.backend.mmli1.ncsa.illinois.edu",
"secure": true,
"changeOrigin": true
},
"/demo.html": {
"localTarget": "http://localhost:8080",
"target": "https://marvinjs.backend.mmli1.ncsa.illinois.edu",
"secure": true,
"changeOrigin": true
},
"/gui": {
"localTarget": "http://localhost:8080",
"target": "https://marvinjs.backend.mmli1.ncsa.illinois.edu",
"secure": true,
"changeOrigin": true
},
"/js": {
"localTarget": "http://localhost:8080",
"target": "https://marvinjs.backend.mmli1.ncsa.illinois.edu",
"secure": true,
"changeOrigin": true
}
}
{}
Loading