Skip to content

Instantly share code, notes, and snippets.

@zilehuda
Last active October 20, 2019 14:04
Show Gist options
  • Save zilehuda/47edae19d394bbc2b37b2c7a676d3f39 to your computer and use it in GitHub Desktop.
Save zilehuda/47edae19d394bbc2b37b2c7a676d3f39 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