Skip to content
Snippets Groups Projects
Commit ff9e49db authored by Matt Kirby's avatar Matt Kirby
Browse files

added index

parent d8c73402
No related branches found
No related tags found
1 merge request!15Add Friend service
import express, { Application } from 'express'
import { initializeRoutes } from './src/Startup/routes'
import { MongoConnectionProvider } from './src/Database/MongoConnectionProvider'
import jwt from 'jsonwebtoken'
// Server configuration
const server:Application = express();
// InitaliseRoutes
initializeRoutes(server)
// Database configuration
export const MongoClient = new MongoConnectionProvider('friends','localhost', 27019)
MongoClient.Connect()
// MongoClient.Connection.dropDatabase()
// console.log(jwt.sign('a', "abcdefg12345"))
server.listen(9003, ():void => {
console.log('Service: Running here 👉 https://localhost:9003')
})
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment