Skip to content

Commit bf02acc

Browse files
authored
Merge pull request #89 from cristim67/master
Add Deploy to Genezio Button
2 parents d1116ed + 754f35d commit bf02acc

File tree

3 files changed

+31
-4
lines changed

3 files changed

+31
-4
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ It comes with 6 filter colors for the sidebar (`black`, `azure`,`green`,`orange`
1515
- [Versions](#versions)
1616
- [Demo](#demo)
1717
- [Quick Start](#quick-start)
18+
- [Deploy](#deploy)
1819
- [Documentation](#documentation)
1920
- [File Structure](#file-structure)
2021
- [Browser Support](#browser-support)
@@ -48,6 +49,12 @@ Quick start options:
4849
- [Download from Github](https://github.com/creativetimofficial/light-bootstrap-dashboard-react/archive/master.zip).
4950
- [Download from Creative Tim](https://www.creative-tim.com/product/light-bootstrap-dashboard-react?ref=lbdr-readme).
5051

52+
## Deploy
53+
54+
:rocket: You can deploy your own version of the template to Genezio with one click:
55+
56+
[![Deploy to Genezio](https://raw.githubusercontent.com/Genez-io/graphics/main/svg/deploy-button.svg)](https://app.genez.io/start/deploy?repository=https://github.com/creativetimofficial/light-bootstrap-dashboard-react&utm_source=github&utm_medium=referral&utm_campaign=github-creativetim&utm_term=deploy-project&utm_content=button-head)
57+
5158
## Documentation
5259

5360
The documentation for the Light Bootstrap Dashboard React is hosted at our [website](https://demos.creative-tim.com/light-bootstrap-dashboard-react/#/documentation/?ref=lbdr-readme).

genezio.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: light-bootstrap-dashboard-react
2+
region: us-east-1
3+
frontend:
4+
# Specifies the path of your code.
5+
path: .
6+
# Specifies the folder where the build is located.
7+
# This is the folder that will be deployed.
8+
publish: build
9+
# Scripts will run in the specified `path` folder.
10+
scripts:
11+
# The command to build your frontend project. This is custom to your project.
12+
# It must to populate the specified `publish` folder with a `index.html` file.
13+
deploy:
14+
- npm install --legacy-peer-deps
15+
- npm run build
16+
yamlVersion: 2

package.json

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,20 @@
33
"version": "2.0.1",
44
"dependencies": {
55
"@fortawesome/fontawesome-free": "5.15.2",
6+
"ajv": "^8.16.0",
67
"bootstrap": "4.6.0",
78
"chartist": "0.11.4",
89
"gulp": "4.0.2",
910
"gulp-append-prepend": "1.0.9",
10-
"react": "18.2.0",
11-
"reactstrap": "8.8.1",
11+
"react": ">=16.8.0",
1212
"react-bootstrap": "2.4.0",
1313
"react-chartist": "0.14.4",
14-
"react-dom": "18.2.0",
14+
"react-dom": ">=16.8.0",
1515
"react-notification-alert": "0.0.13",
1616
"react-router": "5.2.0",
1717
"react-router-dom": "5.2.0",
1818
"react-scripts": "5.0.1",
19+
"reactstrap": "8.8.1",
1920
"sass": "1.53.0"
2021
},
2122
"optionalDependencies": {
@@ -24,7 +25,7 @@
2425
},
2526
"scripts": {
2627
"start": "react-scripts start",
27-
"build": "react-scripts build",
28+
"build": "cross-env CI=false react-scripts build",
2829
"test": "react-scripts test",
2930
"eject": "react-scripts eject",
3031
"install:clean": "rm -rf node_modules/ && rm -rf package-lock.json && npm install && npm start",
@@ -47,5 +48,8 @@
4748
"last 1 firefox version",
4849
"last 1 safari version"
4950
]
51+
},
52+
"devDependencies": {
53+
"cross-env": "^7.0.3"
5054
}
5155
}

0 commit comments

Comments
 (0)