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

Super gross dont look

parent 173a1538
No related branches found
No related tags found
1 merge request!15Add Friend service
......@@ -10,7 +10,7 @@ const server:Application = express();
initializeRoutes(server)
// Database configuration
export const MongoClient = new MongoConnectionProvider('friends','localhost', 27019)
export const MongoClient = new MongoConnectionProvider(process.env.MONGO_DBNAME as string, process.env.MONGO_HOST as string, Number(process.env.MONGO_PORT as string))
MongoClient.Connect()
// MongoClient.Connection.dropDatabase()
......@@ -18,6 +18,6 @@ console.log(jwt.sign('a', "abcdefg12345"))
console.log(jwt.sign('b', "abcdefg12345"))
console.log(jwt.sign('c', "abcdefg12345"))
server.listen(9003, ():void => {
console.log('Service: Running here 👉 https://localhost:9003')
server.listen(9000, ():void => {
console.log('Service: Running here 👉 https://localhost:9000')
})
\ 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