Selaa lähdekoodia

removed convoluted script and replaced with a simple one

master
kj1352 4 vuotta sitten
vanhempi
commit
1b33d1978a
4 muutettua tiedostoa jossa 3 lisäystä ja 8 poistoa
  1. BIN
      .gitignore
  2. +1
    -6
      package.json
  3. +1
    -1
      src/db-utils.ts
  4. +1
    -1
      src/index.ts

BIN
.gitignore Näytä tiedosto


+ 1
- 6
package.json Näytä tiedosto

@@ -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",


+ 1
- 1
src/db-utils.ts Näytä tiedosto

@@ -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;



+ 1
- 1
src/index.ts Näytä tiedosto

@@ -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'), () => {


Ladataan…
Peruuta
Tallenna