diff --git a/.gitignore b/.gitignore index 2c9fcff..fd74315 100644 Binary files a/.gitignore and b/.gitignore differ diff --git a/package.json b/package.json index 0b8e549..5c42d15 100644 --- a/package.json +++ b/package.json @@ -4,12 +4,7 @@ "description": "job portal backend node app", "main": "dist/index.js", "scripts": { - "prebuild": "tslint -c tslint.json -p tsconfig.json --fix", - "build": "tsc", - "prestart": "npm run build", - "start": "node .", - "watch": "nodemon src/index.ts & tslint -c tslint.json -p tsconfig.json --fix & npm run build & node .", - "test": "echo \"Error: no test specified\" && exit 1" + "start": "nodemon src/index.ts && tsc && node dist/src/index.js" }, "author": "", "license": "ISC", diff --git a/src/db-utils.ts b/src/db-utils.ts index 6b10678..6fcc52f 100644 --- a/src/db-utils.ts +++ b/src/db-utils.ts @@ -1,6 +1,6 @@ import { MongoClient, Collection } from 'mongodb'; - +// You can define any db name you are looking for here export const DB_NAME = 'jobportal'; const DATABASE_URL = 'mongodb://localhost:27017/' + DB_NAME; diff --git a/src/index.ts b/src/index.ts index d1a8ada..1fa40f4 100644 --- a/src/index.ts +++ b/src/index.ts @@ -19,7 +19,7 @@ app.use('/', authRoutes); app.use('/', userProfileRoutes); app.get('/', (request, response) => { - response.send('Server running' + app.get('port')); + response.send('Server running @ port' + app.get('port')); }); const server = app.listen(app.get('port'), () => {