Skip to content

Commit 7acfbe8

Browse files
Merge branch 'master' into 4.1.0
2 parents a5d1f21 + 8daddef commit 7acfbe8

File tree

2 files changed

+62
-1
lines changed

2 files changed

+62
-1
lines changed

Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ RUN NODE_OPTIONS="--max-old-space-size=4096" npm install
88

99
RUN NODE_OPTIONS="--max-old-space-size=4096" npx lerna run build
1010

11-
FROM nginx:1.25.2-alpine3.18-slim
11+
FROM nginx:1.25.2-alpine3.18-slim AS fnl_base_image
1212

1313
COPY --from=build /usr/src/app/packages/bento-frontend/dist /usr/share/nginx/html
1414
COPY --from=build /usr/src/app/conf/inject.template.js /usr/share/nginx/html/inject.template.js

README.md

+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# Bento Frontend Installation Guide
2+
3+
> ℹ️ **NOTE:** This guide is only for Bento Framework development. If you would like to consume Bento Framework for your project, please refer to the [How get my copy of Bento Frontend?](https://github.com/CBIIT/bento-frontend?tab=readme-ov-file#creating-custom-applications-how-get-my-copy-of-bento-frontend).
4+
5+
🍱 Welcome to the Bento Frontend Installation Guide! 🍱
6+
---
7+
### Prerequisites:
8+
- Node 16.17.1
9+
- NPM 8.15.0
10+
- Lerna 6.6.7
11+
12+
### Lerna Installation Steps:
13+
14+
1. **Install Lerna globally:**
15+
```bash
16+
npm install -g [email protected]
17+
18+
### Bento Frontend Installation Steps:
19+
20+
1. **Clone Bento Frontend Repository:**
21+
```bash
22+
git clone https://github.com/CBIIT/bento-frontend.git
23+
cd bento-frontend
24+
```
25+
26+
2. **Install Node Modules:**
27+
```bash
28+
npm install
29+
```
30+
31+
3. **Navigate to Nginx Configuration Directory:**
32+
```bash
33+
cd packages/bento-frontend/nginx/
34+
```
35+
36+
4. **Install Nginx:**
37+
- Use the provided guide "local-nginx-setup-for-frontend.txt" to install Nginx on your Linux-based system.
38+
39+
5. **Return to the Root Folder:**
40+
```bash
41+
cd ../../../
42+
```
43+
44+
6. **Run Lerna to Start Bento Frontend:**
45+
```bash
46+
lerna run start
47+
```
48+
49+
---
50+
51+
### Creating Custom Applications (How get my copy of Bento Frontend?):
52+
53+
🛠️ If you want to create a custom application using Bento, you can use the following command:
54+
55+
```bash
56+
npx @bento-core/create-bento-app <My Application Name>
57+
```
58+
59+
ℹ️ This command will scaffold a new Bento application for you to customize according to your needs.
60+
61+
🚀 Following these steps should have Bento Frontend up and running on your system. Enjoy exploring Bento! 🚀

0 commit comments

Comments
 (0)