From ff9e49db32ae80ee36e29dbca58f82b92b773bee Mon Sep 17 00:00:00 2001
From: Matt Kirby <MattJKirby@outlook.com>
Date: Sat, 15 Apr 2023 01:32:43 +0100
Subject: [PATCH] added index

---
 backend-services/friend-service/index.ts | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 backend-services/friend-service/index.ts

diff --git a/backend-services/friend-service/index.ts b/backend-services/friend-service/index.ts
new file mode 100644
index 00000000..341c54a1
--- /dev/null
+++ b/backend-services/friend-service/index.ts
@@ -0,0 +1,22 @@
+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
-- 
GitLab