-
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
0 parents
commit bb80bc1
Showing
6,670 changed files
with
907,472 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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,72 @@ | ||
{ | ||
"$schema": "./node_modules/@angular/cli/lib/config/schema.json", | ||
"project": { | ||
"name": "Volcano Petrology" | ||
}, | ||
"apps": [ | ||
{ | ||
"root": "src", | ||
"outDir": "dist", | ||
"assets": [ | ||
"assets", | ||
"favicon.ico", | ||
"manifest.json" | ||
], | ||
"index": "index.html", | ||
"main": "main.ts", | ||
"polyfills": "polyfills.ts", | ||
"test": "test.ts", | ||
"tsconfig": "tsconfig.app.json", | ||
"testTsconfig": "tsconfig.spec.json", | ||
"prefix": "app", | ||
"serviceWorker": true, | ||
"styles": [ | ||
"./assets/js/vis-4.20.1/dist/vis.min.css", | ||
"./assets/js/vis-4.20.1/dist/vis-network.min.css", | ||
"../node_modules/snazzy-info-window/dist/snazzy-info-window.css", | ||
"styles.css" | ||
], | ||
"scripts": [ | ||
"../node_modules/jquery/dist/jquery.min.js", | ||
"./assets/js/vis-4.20.1/dist/vis.min.js", | ||
"./assets/js/vis-4.20.1/dist/vis-network.min.js", | ||
"./assets/js/fabricjs/dist/fabric.min.js", | ||
"../node_modules/plotly.js/dist/plotly.min.js" | ||
], | ||
"environmentSource": "environments/environment.ts", | ||
"environments": { | ||
"dev": "environments/environment.ts", | ||
"prod": "environments/environment.prod.ts" | ||
} | ||
} | ||
], | ||
"e2e": { | ||
"protractor": { | ||
"config": "./protractor.conf.js" | ||
} | ||
}, | ||
"lint": [ | ||
{ | ||
"project": "src/tsconfig.app.json", | ||
"exclude": "**/node_modules/**" | ||
}, | ||
{ | ||
"project": "src/tsconfig.spec.json", | ||
"exclude": "**/node_modules/**" | ||
}, | ||
{ | ||
"project": "e2e/tsconfig.e2e.json", | ||
"exclude": "**/node_modules/**" | ||
} | ||
], | ||
"test": { | ||
"karma": { | ||
"config": "./karma.conf.js" | ||
} | ||
}, | ||
"defaults": { | ||
"styleExt": "css", | ||
"component": { | ||
} | ||
} | ||
} |
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,13 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
charset = utf-8 | ||
indent_style = space | ||
indent_size = 2 | ||
insert_final_newline = true | ||
trim_trailing_whitespace = true | ||
|
||
[*.md] | ||
max_line_length = off | ||
trim_trailing_whitespace = false |
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,5 @@ | ||
{ | ||
"projects": { | ||
"default": "eos-volcano-petrology" | ||
} | ||
} |
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 @@ | ||
# See http://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# compiled output | ||
/dist | ||
/tmp | ||
/out-tsc | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
testem.log | ||
/typings | ||
yarn-error.log | ||
|
||
# e2e | ||
/e2e/*.js | ||
/e2e/*.map | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# Data | ||
/data | ||
|
||
#Environments Key | ||
/src/environments | ||
/server/config/eos-volcano-petrology-b6ada77e0942.json | ||
|
||
#uploads folder | ||
/uploads | ||
|
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,87 @@ | ||
# Introduction | ||
|
||
This project is done using MEAN Stack | ||
|
||
The front end is using Angular 4 | ||
|
||
The back end is using NodeJS | ||
|
||
The Database is Mongodb and Firebase | ||
|
||
The cloud demo version of this website is on : https://eos-volcano-petrology.firebaseapp.com/home | ||
|
||
|
||
# Software preparation | ||
|
||
1/Contact the prior authorized person to get the environments folder which contains the api keys of Firebase, then paste it inside src folder. Also get the admin authorization to the Firebase console | ||
|
||
2/ Install NodeJS | ||
|
||
3/ Install Filezilla | ||
|
||
4/ Install MobaXterm | ||
|
||
5/ Install MongoDB | ||
|
||
5/ Use NodeJS to install pm2, http-server globally | ||
|
||
|
||
# Development server | ||
For developing purpose, run on localhost. Follow the following steps | ||
|
||
0/ Change all the url in all files from deploy server to developing server | ||
|
||
1/ Turn on the Database: Navigate to \data. Run in the terminal this command: mongod --dbpath <path to \data folder> | ||
|
||
2/ Turn on the Backend: Navigate to main folder, Run in the terminal this command: node server | ||
|
||
3/ Turn on the Frontend: Navigate to \src folder, Run in the terminal this command: npm start | ||
|
||
4/ Turn on the Image hosting server: Navigate to \uploads folder, Run in the terminal this command: http-server -p 7777 | ||
|
||
4/ In browser, go to localhost:4444 | ||
|
||
|
||
Note: The API server is running on localhost:4000, The image server is running on localhost:7777 | ||
|
||
|
||
# Deploy server | ||
|
||
For Deploying purpose. Follow the following steps: | ||
|
||
0/ Change all the url in all files from developing server to deploy server | ||
|
||
1/ Ask Christina or whoever is the supervisor to contact Edwin -the technician to grant access to the server machine | ||
|
||
2/ Using Filezilla to copy all files from developer's machine to the server machine | ||
|
||
3/ Use MobaXterm to deploy (ask Edwin for help, this is quite complicated to write down) | ||
|
||
npm run build -prod --aot | ||
|
||
deploy node | ||
|
||
pm2 start /home/ngoctuan001/EOS_MONGO/server.js --watch | ||
|
||
deploy http-server | ||
|
||
pm2 start /usr/local/node/bin/http-server -- -p 7777 --watch | ||
|
||
SSL Cert: | ||
|
||
"start": "ng serve --public-host https://petro.wovodat.org --port 4444 --ssl true --ssl-cert /usr/local/STAR_wovodat/STAR_wovodat_org.crt --ssl-key /usr/local/STAR_wovodat/wovodat.org --host=155.69.202.44 --disable-host-check", | ||
|
||
# Files need to change the url when alternate between deploy and develop server. Please refer to the comment in the file | ||
|
||
global.ts | ||
|
||
server.js | ||
|
||
image-panel-canvas.component.ts | ||
|
||
attach-metada.component.ts | ||
|
||
sample-file-list.component.ts | ||
|
||
new-image.component.ts | ||
|
Oops, something went wrong.