-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Release v2.1
- Loading branch information
Showing
277 changed files
with
4,272 additions
and
1,800 deletions.
There are no files selected for viewing
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 @@ | ||
SmartCity-build/ |
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 @@ | ||
FROM openjdk:14-oraclelinux7 | ||
|
||
# install nodejs | ||
RUN yum install -y curl | ||
ENV NODE_VERSION=14.15.1 | ||
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash | ||
ENV NVM_DIR=/root/.nvm | ||
RUN . "$NVM_DIR/nvm.sh" && nvm install ${NODE_VERSION} | ||
RUN . "$NVM_DIR/nvm.sh" && nvm use v${NODE_VERSION} | ||
RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} | ||
ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" | ||
RUN node --version && npm --version | ||
RUN npm install serve -g | ||
|
||
# copy SmartCity-build | ||
COPY SmartCity-build ./SmartCity | ||
|
||
# automatically start app | ||
CMD ["sh","-c","cd SmartCity && ./run.sh"] |
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,54 @@ | ||
## Introduction | ||
|
||
Welcome in SmartCity! | ||
We hope, you will have a nice journey. | ||
|
||
|
||
![image](https://user-images.githubusercontent.com/33404585/102254512-fce3ae00-3f08-11eb-8b6e-897cd7f48b52.png) | ||
|
||
|
||
## Build guide | ||
|
||
To run `build.sh \ build.ps1` script following dependencies are required: | ||
|
||
1. Maven >= 3.6.0: | ||
Download link: https://maven.apache.org/download.cgi | ||
Download maven archive from provided website, unpack it and add its `bin` directory to system PATH variable. | ||
See also: https://maven.apache.org/install.html | ||
Check by `mvn --version` | ||
|
||
2. Java >= 14 | ||
Download link: https://jdk.java.net/java-se-ri/14 | ||
Check by `"$JAVA_HOME/bin/java" --version` for bash | ||
Check by `& "$Env:JAVA_HOME\bin\java.exe" --version` for powershell | ||
|
||
3. Node.js >= 14.15.1 | ||
Download link: https://nodejs.org/en/download/ | ||
Check by `node --version` | ||
|
||
## Run guide | ||
|
||
To run `run.sh \ run.ps1` script following dependencies are required: | ||
|
||
1. Java >= 14 | ||
2. Node.js >= 14.15.1 | ||
3. Serve ( `npm install -g serve`) | ||
|
||
See above for instructions. | ||
|
||
Run `run.sh \ run.ps1` script to boot the application. | ||
By default it will be present on address: `localhost:5000` - it should open in your browser automatically. | ||
|
||
### Browser | ||
See https://create-react-app.dev/docs/supported-browsers-features/ for browser compatibility guide. | ||
It is not guaranteed that app will work in IE 11, 10, 9 or older. | ||
|
||
|
||
## Docker | ||
To use in docker: | ||
``` | ||
docker build -t smart_city-image . | ||
docker run -dit -p 4000:4000 -p 9000:9000 -p 5000:5000 | ||
--name smartCity smart_city-image:latest | ||
``` | ||
Then open your browser on `localhost:5000`. |
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 |
---|---|---|
|
@@ -54,3 +54,7 @@ MTPs-Main-Container.txt | |
smartCity.eml | ||
.settings/ | ||
.classpath | ||
|
||
## Other | ||
package/** | ||
docs/ |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
...a/runConfigurations/SmartCity_Package.xml → ...Configurations/Boot_SmartCity_Package.xml
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
Oops, something went wrong.