-
Notifications
You must be signed in to change notification settings - Fork 4
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
Showing
28 changed files
with
1,033 additions
and
0 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,73 @@ | ||
@import url('https://fonts.googleapis.com/css?family=Ubuntu'); | ||
|
||
div{ | ||
font-family: 'Ubuntu', sans-serif; | ||
} | ||
|
||
p,h1,h2,h3,h4,h5,h6{ | ||
margin : 0px; | ||
padding:0px; | ||
} | ||
|
||
/* Job list card */ | ||
.postings-parent{ | ||
bottom: 0; | ||
float: left; | ||
overflow-y: auto; | ||
position: relative; | ||
height: 100%; | ||
} | ||
|
||
.joblist-row{ | ||
padding : 4px; | ||
border-bottom: 1px solid #E0E0E0; | ||
} | ||
|
||
.joblist-row:hover{ | ||
background-color:#E2F4FC; | ||
border-bottom: 0px | ||
} | ||
|
||
/* Job Description */ | ||
#job-save-btn{ | ||
color:#0073b1; | ||
border:0.3px solid #0073b1; | ||
background-color:white; | ||
font-style:bold; | ||
font-size:13px; | ||
margin-right:1rem; | ||
border-radius:3px; | ||
width:5rem; | ||
} | ||
|
||
#easy-apply-btn{ | ||
background-color:#0073b1; | ||
color:white; | ||
font-style:bold; | ||
font-size:13px; | ||
border-radius:3px; | ||
width:6rem; | ||
} | ||
|
||
#job-detail-row{ | ||
border-bottom:1px solid #E0E0E0; | ||
border-top:1px solid #E0E0E0; | ||
} | ||
|
||
#col-seperator{ | ||
border-left:1px solid #E0E0E0; | ||
border-right:1px solid #E0E0E0; | ||
} | ||
|
||
/* connections css */ | ||
#all-connections-list{ | ||
columns: 3; | ||
padding: 5px; | ||
border: 0.5px solid grey; | ||
} | ||
.connection:hover{ | ||
background-color:#E2F4FC; | ||
} | ||
.body{ | ||
background-color: white; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,70 @@ | ||
export const userLoggedIn = (userDetail) => { | ||
console.log("user detail"); | ||
console.log(userDetail); | ||
return { | ||
type: 'USER_LOGGED_IN', | ||
data: userDetail | ||
} | ||
}; | ||
export const userSignupAction = (userDetail) => { | ||
return { | ||
type: 'USER_SIGNED_UP', | ||
data: userDetail | ||
} | ||
}; | ||
export const userProfileUpdateAction = (userDetail) => { | ||
return { | ||
type: 'USER_PROFILE_UPDATE', | ||
data: userDetail | ||
} | ||
}; | ||
export const userDeleteAction = (userDetail) => { | ||
return { | ||
type: 'USER_PROFILE_DELETE', | ||
data: userDetail | ||
} | ||
}; | ||
|
||
export const userTraceAction = (userDetail) => { | ||
return { | ||
type: 'USER_VISIT_ACTIVITY', | ||
data: userDetail | ||
} | ||
}; | ||
export const userSearchAction = (userDetail) => { | ||
return { | ||
type: 'USER_SEARCH_ACTIVITY', | ||
data: userDetail | ||
} | ||
}; | ||
|
||
export const userClickedAction = (userDetail) => { | ||
return { | ||
type: 'USER_CLICK_ACTIVITY', | ||
data: userDetail | ||
} | ||
}; | ||
export const searchFieldAction = (userDetail) => { | ||
return { | ||
type: 'SEARCH_FIELD_ACTIVITY', | ||
data: userDetail | ||
} | ||
}; | ||
export const jobsearchFieldAction = (userDetail) => { | ||
return { | ||
type: 'JOBSEARCH_FIELD_ACTIVITY', | ||
data: userDetail | ||
} | ||
}; | ||
export const recuriterDashBoardTraceAction = (userDetail) => { | ||
return { | ||
type: 'RECRUITER_DASHBOARD_FETCH', | ||
data: userDetail | ||
} | ||
}; | ||
export const jobtitleUpdateAction = (userDetail) => { | ||
return { | ||
type: 'JOBTITLE_UPDATE_ACTIVITY', | ||
data: userDetail | ||
} | ||
}; |
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,91 @@ | ||
#!/usr/bin/env node | ||
|
||
/** | ||
* Module dependencies. | ||
*/ | ||
|
||
var app = require('../app'); | ||
var debug = require('debug')('backend:server'); | ||
var http = require('http'); | ||
|
||
/** | ||
* Get port from environment and store in Express. | ||
*/ | ||
|
||
var port = normalizePort(process.env.PORT || '3001'); | ||
app.set('port', port); | ||
|
||
/** | ||
* Create HTTP server. | ||
*/ | ||
|
||
var server = http.createServer(app); | ||
|
||
/** | ||
* Listen on provided port, on all network interfaces. | ||
*/ | ||
|
||
server.listen(port); | ||
server.on('error', onError); | ||
server.on('listening', onListening); | ||
|
||
/** | ||
* Normalize a port into a number, string, or false. | ||
*/ | ||
|
||
function normalizePort(val) { | ||
var port = parseInt(val, 10); | ||
|
||
if (isNaN(port)) { | ||
// named pipe | ||
return val; | ||
} | ||
|
||
if (port >= 0) { | ||
// port number | ||
return port; | ||
} | ||
|
||
return false; | ||
} | ||
|
||
/** | ||
* Event listener for HTTP server "error" event. | ||
*/ | ||
|
||
function onError(error) { | ||
if (error.syscall !== 'listen') { | ||
throw error; | ||
} | ||
|
||
var bind = typeof port === 'string' | ||
? 'Pipe ' + port | ||
: 'Port ' + port; | ||
|
||
// handle specific listen errors with friendly messages | ||
switch (error.code) { | ||
case 'EACCES': | ||
console.error(bind + ' requires elevated privileges'); | ||
process.exit(1); | ||
break; | ||
case 'EADDRINUSE': | ||
console.error(bind + ' is already in use'); | ||
process.exit(1); | ||
break; | ||
default: | ||
throw error; | ||
} | ||
} | ||
|
||
/** | ||
* Event listener for HTTP server "listening" event. | ||
*/ | ||
|
||
function onListening() { | ||
var addr = server.address(); | ||
var bind = typeof addr === 'string' | ||
? 'pipe ' + addr | ||
: 'port ' + addr.port; | ||
debug('Listening on ' + bind); | ||
console.log('Listening on ' + bind); | ||
} |
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,24 @@ | ||
// const MONGO_URL = "" | ||
// const MONGO_DB_NAME = "" | ||
|
||
// const MYSQL_DB_NAME = "" | ||
// const MYSQL_DB_USERNAME ="" | ||
// const MYSQL_DB_PASSWORD = "" | ||
// const MYSQL_DB_HOST = "" | ||
// const MYSQL_DB_PORT = "" | ||
// mongoose.connect('mongodb://localhost:27017/LinkedIN'); | ||
// module.exports= {MONGO_URL,MONGO_DB_NAME}; | ||
// module.exports = {MYSQL_DB_NAME,MYSQL_DB_USERNAME,MYSQL_DB_PASSWORD,MYSQL_DB_HOST,MYSQL_DB_PORT}; | ||
'use strict'; | ||
module.exports = { | ||
'secret': "secretlinkedinstringforshim273courselab1kafkaawsrestapi", | ||
|
||
//'MONGO_URI' : "mongodb://linkedin:[email protected]:63683/linkedin", | ||
// 'MONGO_URI' : "mongodb+srv://linkedin:[email protected]/linkedin?retryWrites=true", | ||
'MONGO_URI' : "mongodb://linkedin:[email protected]:63683/linkedin", | ||
// 'MONGO_URI' : "mongodb+srv://linkedin:[email protected]/linkedin?retryWrites=true", | ||
'MONGO_DB_NAME' : "linkedin", | ||
'MONGO_COLLECTION_JOB_POSTINGS' : "jobpostings", | ||
//'MONGO_URI' : "mongodb://localhost:27017/LinkedIN" | ||
|
||
}; |
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,36 @@ | ||
var mongodb_connection = null; | ||
var mongo = require('./mongodbconnection.js').connectMongo(); | ||
var collectionJobPostings = require('./../constants/constants.js').MONGO_COLLECTION_JOB_POSTINGS; | ||
var MONGO_DB_NAME = require('./../constants/constants.js').MONGO_DB_NAME; | ||
|
||
mongo.then((db)=>{ | ||
mongodb_connection = db; | ||
}).catch((error)=>{ | ||
console.log(error); | ||
}); | ||
|
||
|
||
var searchJobs = async function(params) { | ||
try{ | ||
let docs=[]; | ||
const linkedInDB = mongodb_connection.db(MONGO_DB_NAME); | ||
if(params == null) { | ||
docs = await linkedInDB.collection(collectionJobPostings).find({}); | ||
} | ||
else { | ||
docs = await linkedInDB.collection(collectionJobPostings).find({"CompanyName":params}); | ||
} | ||
|
||
if(docs == null){ | ||
return Promise.reject("No Jobs found"); | ||
}else{ | ||
const joblistings = await docs.toArray(); | ||
return Promise.resolve(joblistings); | ||
} | ||
}catch(error){ | ||
console.log(error); | ||
return Promise.reject("Could not make a mongodb connection") | ||
} | ||
} | ||
|
||
module.exports = {searchJobs}; |
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,18 @@ | ||
|
||
var MongoClient = require('mongodb').MongoClient; | ||
const mongo_url = require('./../constants/constants.js').MONGO_URI; | ||
var _db; | ||
|
||
const connectMongo = async function(){ | ||
try{ | ||
const db = await MongoClient.connect(mongo_url,{useNewUrlParser:true}); | ||
_db = db | ||
return Promise.resolve(db); | ||
}catch(error){ | ||
return Promise.reject("Could not connect to MLAB Mongo db in mongoconnectiondb.js"); | ||
} | ||
} | ||
|
||
|
||
|
||
module.exports = {connectMongo}; |
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,6 @@ | ||
var mongoose = require('mongoose'); | ||
var config = require('../constants/constants'); | ||
mongoose.Promise = global.Promise; | ||
mongoose.connect(config.MONGO_URI); | ||
|
||
module.exports = {mongoose}; |
Oops, something went wrong.