Created
October 20, 2019 13:30
-
-
Save zilehuda/3e918ca4cc646c588b6a2dd0b3345f2f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const express = require('express'); | |
const app = express(); | |
const PORT = process.env.PORT || 3000; | |
const eurekaHelper = require('./eureka.helper'); | |
app.listen(PORT, () => { | |
console.log("user-service on 3000"); | |
}) | |
app.get('/', (req, res) => { | |
res.json("I am user-service") | |
}) | |
eurekaHelper.registerWithEureka('user-service', PORT); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment