Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

This could be an Application as an Software Engineering Wizard #3

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 68 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,68 @@
node_modules
# Created by .ignore support plugin (hsz.mobi)
### Node template
# Logs
backend
client
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage

# nyc test coverage
.nyc_output

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Typescript v1 declaration files
typings/

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env

# next.js build output
.next

.idea

2 changes: 0 additions & 2 deletions README.md

This file was deleted.

12 changes: 12 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Deployment Script for my GeoCV
1. Just type ```npm start```
2. After webpack has compiled, open localhost:8081 in your fav. browser (tested at chrome & firefox)
3. In case you want start this again, go to ```/root/client/``` and type ```npm start```
4. Have fun ;)
## Requirements
* NodeJS and NPM
* Go:1.9.2 and I assume you 've set a global GOBIN environmental variable (```export GOBIN=$HOME/work/bin```)
* Linux/Ubuntu (I've never tested but could work on Windows, too;) )
* free ports at 8080 and 8081
* sudo apt install libssl-dev (sometime node-git need that)

27 changes: 25 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
const colors = require('colors');
//[email protected]:onlyme12/client.git
//[email protected]:onlyme12/backend.git


var shell = require('shelljs');
if(!shell.which("go")){
if(shell.env.GIO_LAUNCHED_DESKTOP_FILE !== undefined){
if(shell.env.GIO_LAUNCHED_DESKTOP_FILE.indexOf("jetbrains") == -1){
shell.echo("Sorry, this project requires go :(");
}else {
shell.echo("this script works only outside of an IDE - please start it on a normal terminal")
}
}
shell.echo("Something is wrong with your GoLang installation - Have you GoLang:1.9? Have you set and exported a GOBIN enivornment variable? - please look in the readme");
shell.echo("sorry that it doesn't work on your machine. In case you're only interested in the results you can view it here: http://207.154.214.32/geocv/#/welcome. But be patient this machine is cheap and slow ;)");
shell.exit(1);
}
if (!shell.which('git')) {
shell.echo('Sorry, this script requires git');
shell.exit(1);
}

shell.exec("git clone https://bitbucket.org/onlyme12/client.git && cd client && npm install"); //works
shell.exec("git clone https://bitbucket.org/onlyme12/backend");


console.log(colors.rainbow('Whooop Whooop, you better give me that job because...'));
13 changes: 0 additions & 13 deletions package-lock.json

This file was deleted.

25 changes: 10 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
{
"name": "iwantthatjob",
"version": "0.6.9",
"description": "I Want That Job",
"name": "geocvdeployment",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"postinstall": "node index.js",
"startBackend":"cd backend && go install",
"start":"npm install && cd client && npm install && npm start"
},
"repository": {
"type": "git",
"url": "git+https://github.com/imaginecargo/iWantThatJob.git"
},
"author": "Somebody",
"author": "ffischer",
"license": "ISC",
"bugs": {
"url": "https://github.com/imaginecargo/iWantThatJob/issues"
},
"homepage": "https://github.com/imaginecargo/iWantThatJob#readme",
"dependencies": {
"colors": "^1.1.2"
"nodegit": "^0.20.3",
"shelljs": "^0.8.1"
}
}