forked from unlhcc/rna-nanostructures-2021
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,432 changed files
with
204,741 additions
and
2,158 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,6 +21,3 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# package | ||
package-lock.json |
This file was deleted.
Oops, something went wrong.
1,025 changes: 0 additions & 1,025 deletions
1,025
.vs/HCC-rnamake-frontend/config/applicationhost.config
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,16 @@ | ||
[](https://app.travis-ci.com/ahamad2/HCC-rnamake-frontend) | ||
## Quick Setup Instructions | ||
1. `cd airavata-django-portal` | ||
2. Follow the instructions in the [Airavata Django Portal](https://github.com/apache/airavata-django-portal) for this folder. | ||
3. | ||
``` | ||
cd hcc_rnamake_portal | ||
pip install -e . | ||
```` | ||
4. `cd frontend` | ||
5. `npm i` | ||
8. `npm run-script build` | ||
9. `cd ../..` | ||
10. `cd airavata-django-portal` | ||
11. `python manage.py runserver` | ||
## Quickstart | ||
|
||
run `npm install` | ||
|
||
run `npm i react-router-dom` | ||
|
||
run `npm start` to start the current project in your browser. | ||
portal should be running now. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
**/node_modules | ||
venv | ||
**.pyc | ||
.git | ||
**/dist | ||
*.sqlite3 | ||
**/settings_local*.py | ||
.tox |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
charset = utf-8 | ||
|
||
[*.py] | ||
indent_size = 4 | ||
|
||
[*.html] | ||
indent_size = 2 | ||
|
||
[*.{js,vue}] | ||
indent_size = 2 | ||
|
||
[*.scss] | ||
indent_size = 2 | ||
|
||
[*.json] | ||
indent_size = 2 | ||
|
||
[*.md] | ||
indent_size = 2 | ||
|
||
# mkdocs Markdown parser requires 4 space indent | ||
[docs/**.md] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
*.pyc | ||
*.sqlite3 | ||
settings_local.py | ||
settings_local*.py | ||
.DS_Store | ||
node_modules | ||
.idea/ | ||
dist/ | ||
ENV | ||
venv/ | ||
.vscode/ | ||
jsconfig.json | ||
airavata_django_portal.egg-info | ||
# AIRAVATA-2951 package-lock.json files cause the build to fail when deploying to server | ||
package-lock.json | ||
# mkdocs | ||
site/ | ||
.tox/ | ||
yarn-error.log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
lts/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"proseWrap": "always" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
language: python | ||
python: | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
- "3.9" | ||
# - "3.10" | ||
install: | ||
- nvm install | ||
- nvm use | ||
- pip install --upgrade pip setuptools wheel | ||
- pip install -r requirements-dev.txt | ||
script: | ||
- cp django_airavata/settings_local.py.sample django_airavata/settings_local.py | ||
- python manage.py migrate | ||
- python manage.py check | ||
- flake8 . | ||
- ./lint_js.sh | ||
- ./build_js.sh | ||
- ./test_js.sh | ||
# Need to build the frontend client before running some of the Django tests | ||
# that use the Django test Client | ||
- ./runtests.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
# node image is based on Debian and includes necessary build tools | ||
FROM node:lts as build-stage | ||
|
||
# build api javascript | ||
# api must come first, then common, since the others depend on these | ||
WORKDIR /code/django_airavata/apps/api | ||
COPY ./django_airavata/apps/api/package.json ./django_airavata/apps/api/yarn.lock ./ | ||
RUN yarn | ||
COPY ./django_airavata/apps/api/ . | ||
RUN yarn run build | ||
|
||
# build common javascript | ||
WORKDIR /code/django_airavata/static/common | ||
COPY ./django_airavata/static/common/package.json ./django_airavata/static/common/yarn.lock ./ | ||
RUN yarn | ||
COPY ./django_airavata/static/common/ . | ||
RUN yarn run build | ||
|
||
# build dataparsers javascript | ||
WORKDIR /code/django_airavata/apps/dataparsers | ||
COPY ./django_airavata/apps/dataparsers/package.json ./django_airavata/apps/dataparsers/yarn.lock ./ | ||
RUN yarn | ||
COPY ./django_airavata/apps/dataparsers/ . | ||
RUN yarn run build | ||
|
||
# build groups javascript | ||
WORKDIR /code/django_airavata/apps/groups | ||
COPY ./django_airavata/apps/groups/package.json ./django_airavata/apps/groups/yarn.lock ./ | ||
RUN yarn | ||
COPY ./django_airavata/apps/groups/ . | ||
RUN yarn run build | ||
|
||
# build auth javascript | ||
WORKDIR /code/django_airavata/apps/auth | ||
COPY ./django_airavata/apps/auth/package.json ./django_airavata/apps/auth/yarn.lock ./ | ||
RUN yarn | ||
COPY ./django_airavata/apps/auth/ . | ||
RUN yarn run build | ||
|
||
# build workspace/django-airavata-workspace-plugin-api javascript | ||
# This one must come before workspace build | ||
WORKDIR /code/django_airavata/apps/workspace/django-airavata-workspace-plugin-api | ||
COPY ./django_airavata/apps/workspace/django-airavata-workspace-plugin-api/package.json ./django_airavata/apps/workspace/django-airavata-workspace-plugin-api/yarn.lock ./ | ||
RUN yarn | ||
COPY ./django_airavata/apps/workspace/django-airavata-workspace-plugin-api/ . | ||
RUN yarn run build | ||
|
||
# build admin javascript | ||
# To reuse cache best, putting the two most volatile apps, admin and workspace, last | ||
WORKDIR /code/django_airavata/apps/admin | ||
COPY ./django_airavata/apps/admin/package.json ./django_airavata/apps/admin/yarn.lock ./ | ||
RUN yarn | ||
COPY ./django_airavata/apps/admin/ . | ||
RUN yarn run build | ||
|
||
# build workspace javascript | ||
WORKDIR /code/django_airavata/apps/workspace | ||
COPY ./django_airavata/apps/workspace/package.json ./django_airavata/apps/workspace/yarn.lock ./ | ||
RUN yarn | ||
COPY ./django_airavata/apps/workspace/ . | ||
RUN yarn run build | ||
|
||
|
||
|
||
FROM python:3.9-slim as server-stage | ||
|
||
ENV PYTHONUNBUFFERED 1 | ||
|
||
EXPOSE 8000 | ||
|
||
WORKDIR /code | ||
COPY requirements.txt requirements-mysql.txt ./ | ||
COPY setup.* ./ | ||
COPY README.md . | ||
RUN apt-get update && apt-get install -y git gcc g++ zlib1g-dev libjpeg-dev default-libmysqlclient-dev | ||
RUN pip install --upgrade pip setuptools wheel --no-cache | ||
RUN pip install -r requirements.txt --no-cache | ||
RUN pip install -r requirements-mysql.txt --no-cache | ||
|
||
# Copy in a default settings_local.py file | ||
COPY ./django_airavata/settings_local.py.sample ./django_airavata/settings_local.py | ||
|
||
COPY ./ . | ||
|
||
# Copy javascript builds from build-stage | ||
WORKDIR /code/django_airavata/apps/api/static/django_airavata_api | ||
COPY --from=build-stage /code/django_airavata/apps/api/static/django_airavata_api . | ||
WORKDIR /code/django_airavata/static/common/dist | ||
COPY --from=build-stage /code/django_airavata/static/common/dist . | ||
WORKDIR /code/django_airavata/apps/admin/static/django_airavata_admin | ||
COPY --from=build-stage /code/django_airavata/apps/admin/static/django_airavata_admin . | ||
WORKDIR /code/django_airavata/apps/groups/static/django_airavata_groups | ||
COPY --from=build-stage /code/django_airavata/apps/groups/static/django_airavata_groups . | ||
WORKDIR /code/django_airavata/apps/auth/static/django_airavata_auth | ||
COPY --from=build-stage /code/django_airavata/apps/auth/static/django_airavata_auth . | ||
WORKDIR /code/django_airavata/apps/workspace/static/django_airavata_workspace | ||
COPY --from=build-stage /code/django_airavata/apps/workspace/static/django_airavata_workspace . | ||
WORKDIR /code/django_airavata/apps/dataparsers/static/django_airavata_dataparsers | ||
COPY --from=build-stage /code/django_airavata/apps/dataparsers/static/django_airavata_dataparsers . | ||
|
||
WORKDIR /code | ||
|
||
ENTRYPOINT ["/code/scripts/start-server.sh"] | ||
|
Oops, something went wrong.