Skip to content

Commit 686f653

Browse files
committed
#59 Standalone 1
1 parent 7d7edde commit 686f653

33 files changed

+20840
-2256
lines changed

.env

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# !!!This file gets checked into github to support the static build!!!
2-
REACT_APP_VERSION = "v0.1.0"
2+
REACT_APP_VERSION = "v1.0.0"
33
REACT_APP_CLEARANCE_NUMBER = "CL#23-3080"
4-
REACT_APP_LAST_UPDATED = "October 23, 2024"
4+
REACT_APP_LAST_UPDATED = "March 13, 2025"
55

6-
REACT_APP_PUBLIC_URL = "/"
7-
PUBLIC_URL = "/"
6+
REACT_APP_PUBLIC_URL = ""
7+
PUBLIC_URL = ""
88

99
#REACT_APP_DOMAIN = "https://pds-imaging.jpl.nasa.gov/api"
1010
REACT_APP_DOMAIN = "https://nckyqwyyoc.execute-api.us-west-2.amazonaws.com/v1"

Dockerfile

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
############################
2+
# Builder
3+
############################
4+
5+
FROM artifactory.jpl.nasa.gov:17001/node:lts-iron as builder
6+
7+
# Add git
8+
RUN apt-get update \
9+
&& apt-get install -y git
10+
11+
# Create app directory
12+
WORKDIR /usr/src/app
13+
14+
# Bundle entire app source
15+
COPY . .
16+
17+
RUN npx browserslist@latest --update-db
18+
19+
# Force production env
20+
RUN npm ci NODE_ENV=production
21+
22+
# (MAYBE) Set the subpath we're going to server at
23+
# ARG PUBLIC_URL=/beta
24+
# ENV PUBLIC_URL=/beta
25+
26+
# Build client and server
27+
RUN npm run build
28+
29+
30+
#############################
31+
# Switch to Atlas Documentation project
32+
#############################
33+
34+
WORKDIR /usr/src/app/Documentation
35+
36+
# Bundle entire app source
37+
COPY . .
38+
39+
RUN npm ci NODE_ENV=production
40+
41+
RUN npm run build
42+
43+
WORKDIR /usr/src/app/
44+
45+
46+
############################
47+
# Runner
48+
############################
49+
50+
FROM artifactory.jpl.nasa.gov:17001/node:lts-iron as runner
51+
52+
# Create app directory
53+
WORKDIR /usr/src/app
54+
55+
# Contains script macros and metadata
56+
COPY package*.json ./
57+
58+
COPY config/paths.js ./config/
59+
COPY scripts/start-prod.js ./scripts/
60+
61+
# Not all server side packages get bundled
62+
RUN npm ci NODE_ENV=production
63+
64+
# All our needed scripts neatly come from here
65+
COPY --from=builder /usr/src/app/build ./build
66+
67+
EXPOSE 8500
68+
CMD [ "npm", "run", "start:prod" ]

Documenation/.gitignore

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Dependencies
2+
/node_modules
3+
4+
# Production
5+
/build
6+
7+
# Generated files
8+
.docusaurus
9+
.cache-loader
10+
11+
# Misc
12+
.DS_Store
13+
.env.local
14+
.env.development.local
15+
.env.test.local
16+
.env.production.local
17+
18+
npm-debug.log*
19+
yarn-debug.log*
20+
yarn-error.log*

Documenation/README.md

+41
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Website
2+
3+
This website is built using [Docusaurus](https://docusaurus.io/), a modern static website generator.
4+
5+
### Installation
6+
7+
```
8+
$ yarn
9+
```
10+
11+
### Local Development
12+
13+
```
14+
$ yarn start
15+
```
16+
17+
This command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.
18+
19+
### Build
20+
21+
```
22+
$ yarn build
23+
```
24+
25+
This command generates static content into the `build` directory and can be served using any static contents hosting service.
26+
27+
### Deployment
28+
29+
Using SSH:
30+
31+
```
32+
$ USE_SSH=true yarn deploy
33+
```
34+
35+
Not using SSH:
36+
37+
```
38+
$ GIT_USER=<Your GitHub username> yarn deploy
39+
```
40+
41+
If you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.

Documenation/babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: [require.resolve('@docusaurus/core/lib/babel/preset')],
3+
};

Documenation/build-to-build.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
const fs = require('fs-extra')
2+
fs.move(`./build`, `../build/documentation`, { overwrite: true })

Documenation/docs/api/_category_.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"label": "API",
3+
"position": 1,
4+
"link": {
5+
"type": "generated-index",
6+
"description": "5 minutes to learn the most important Docusaurus concepts."
7+
}
8+
}

0 commit comments

Comments
 (0)