Skip to content

Instantly share code, notes, and snippets.

@zilehuda
Created October 20, 2019 13:30
Show Gist options
  • Save zilehuda/3e918ca4cc646c588b6a2dd0b3345f2f to your computer and use it in GitHub Desktop.
Save zilehuda/3e918ca4cc646c588b6a2dd0b3345f2f to your computer and use it in GitHub Desktop.
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